Nic Ferrier wrote:
find childdir --max-depth=1 -type f \
-printf "%AY%Am%Ad%AH%AM %p\n" |\
sort -r | gawk '{print $2}'

In general never use ls for scripts as it's designed for human interaction. Use find instead. For example ls can't handle the case where there are directories other than CVS present. Yours is a very special case

This is the corrected/optimized version of the above

find childdir -maxdepth 1 -type f ! -name ".*" -printf "%T@ %p\n" |
sort -r |
cut -d' ' -f2-

--
P�draig Brady - http://www.pixelbeat.org
--- Following generated by rotagator ---

Quickly search word list for prefix
  look prefix
Highlight occurances of word in word list
  look '' | grep -Fi --color word
Lookup word in online dictionaries/info
  gnome-dictionary ireland
--


_______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to