Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (48 sloc) 0.822 kb
module Shell::Command;
sub cat(*@files) is export {
for @files -> $f {
given open($f) {
for .lines -> $line {
say $line;
}
.close
}
}
}
sub eqtime($source, $dest) is export {
???
}
sub rm_f(*@files) is export {
for @files -> $f {
unlink $f if $f.IO ~~ :e;
}
}
sub rm_rf(*@files) is export {
???
}
sub touch(*@files) is export {
???
}
sub mv(*@args) is export {
???
}
sub cp(*@args) is export {
???
}
sub mkpath(*@paths) is export {
for @paths -> $name {
for [\~] $name.split('/').map({"$_/"}) {
mkdir($_) unless .IO.d
}
}
}
sub test_f($file) is export {
???
}
sub test_d($file) is export {
???
}
sub dos2unix($file) is export {
???
}
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.