|There's more than one way to do things|
Reading from ls-lrt (was: Reading)by azatoth (Curate)
|on Feb 05, 2001 at 20:36 UTC||Need Help??|
azatoth has asked for the wisdom of the Perl Monks concerning the following question:
Is there a simple way to do something like this?
Basically, I am trying to write a script that when invoked, will 'do' an ls -lrt on the chosen directory, grab the last five lines (i.e most recently updated files) and strip out all the garbage, leaving just the filenames. My script will then use ftp to put these files on a remote server.Am I making any sense? I don't want to post any code yet because the code i do have does not relate to this question - i.e., there is a big blank hole in it and i am looking for some guidance :P
Thanks as always for any responses...
Azatoth a.k.a Captain Whiplash
Get YOUR PerlMonks Stagename here!
Want to speak like a Londoner
Edited by Corion : Fixed title, font tags