On Fri, May 05, 2000 at 02:20:37PM -0500, Michael Gersten wrote:
> That gives you every directory. What if you only want the top level
> directory, or only the first layer of /BigProject? (I don't want 'ls -R'
> as the only option :-)

cvs rdiff -s -r 0 . 2>&1 >/dev/null | cut -c20- | grep -v '/'

for the top level,

cvs rdiff -s -r 0 . 2>&1 >/dev/null | cut -c20- | grep -v '/.*/'

for the top two levels, etc.  Just add another .*/ to grep's pattern for each
level you want returned.

-- 
The Shortest Windows Manual:  "Turn off the power switch."
Geek Code 3.1:  GCS d- s+: a- C++ UL++$ P+>+++ L++>++++ E- W--(++) N+ o+ !K
w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI++++ D G e* h+ r++ y+

Reply via email to