[PLUG] BASH Script to find last created file in a directory
Aaron Lehmann
lehmanna@purdue.edu
Mon, 12 Feb 2001 18:24:46 +0000
I need to find the last created file in a directory for a script I'm
writng, and then rename it. Can I grep for the last created file, and
make a variable equal to that name? Is there a better way. Also, I'd
really like to have an answer in BASH Scripting language. I'm sure that
PERL would do this better (or that some other thing will be), but I
don't really want to have to modify the rest of thing to fit.
Thanks,
Aaron Lehmann
--
I agree with Matt.