On Tue, Nov 13, 2001 at 02:48:07PM -0800, Gordon Messmer <[EMAIL PROTECTED]> wrote:
| I think you want this:
|
| find / -type d -maxdepth 1 -exec du {} \; | egrep -v "/[^/]*/"
You can make that even simpler:
/.*/
No need to use [^/] there...
| > Would somebody please point me in the direction for finding out how
| > pattern matching works.
|
| Pick up any book on perl, or see any online tutorial on the language.
| Since regular expressions are considered the "core" of the language, they
| get a lot of attention and are explained very well to Perl programmers.
Or of course the cool sed/awk O'Reilly book, which also has regexp stuff.
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
As a computer journalist, he's a good travel writer.
- Ian Yates <[EMAIL PROTECTED]> about Gareth Powell
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list