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 -->
  #8 (permalink)  
Old 05-16-2008
era era is online now
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,092
The double awks are wasteful, though.

Code:
find . -type d | awk -F "/" '!/\.\/200/ { print $2 }'
Note also that 200* in a regular expression means 20 or 200 or 2000 or 20000 or ...
Reply With Quote