The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 05-15-2008
rubin's Avatar
rubin rubin is offline
Registered User
 

Join Date: Nov 2007
Posts: 175
It did work fine for me. There's not much complexity in that command, it's just a simple find, select/sort the proper directories, ( instead of awk , a simple tail -n could have done that), and finally remove them.

Maybe you didn't do a cd first, or you might need to check your awk version. Please reread carefully O/P's requirement .
Reply With Quote