unix starts arrowing on perl, let us see how perl tackles that
find -> File::Find
cp -> File::Copy
grep -> File::Grep
df -> Filesys::DiskSpace
rm -> File::Remove
time -> Benchmark
bash -> Shell
set -> debug
ping -> Net::Ping
ftp -> Net::FTP
telnet -> Net::Telnet
sort -> sort
diff -> Text::Diff
unique -> Array::Unique
date -> Time
mail -> Net::SMTP
ssh -> Net::SSH
scp -> Net::SCP
.
.
.
.
.
It goes on
Judges are
-------------
Industiralists
Software Developers
Business men
Result :-
Healthy Competition
I haven't noticed a module to do the work of *mv* across file system mount points. If anybody knows of one (besides issuing a call to *mv*), please let me know.
"This is the Unix philosophy:
Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface."
So mv is a wrapper around the rename() system call but it also includes cp -r and rm -r whether you want them or not. It wouldn't be so bad if it was a reversible operation but if any of your files were hard links then you're screwed.
du -> Filesys::DiskUsage
(I think I've flogged this module more than its author has ;->)
parv - File::Copy has a mv function that does what you want (according to its POD)
perlmonks.org content © perlmonks.org and fergal, jesuashok, parv, szabgab, Tanktalus, tux300181
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03