Daniel Watkins wrote: > Severity: wishlist > > It'd be nice if I could pass '-r' to wc, rather than using ridiculous shell > expansions.
-1 Try this instead: find . -type f -print0 | wc --files0-from=- If you have a specific need that is often repeated then making a shell script, function or alias to encapsulate this into a shorter typed command might be useful. I would like to file a wishlist that -r be removed from grep which added it recently. Really! It has been a source of a very long list of bugs in that program. Seriously there isn't a need for *every utility* to add directory traversal (file finding) routines. It isn't needed and it creates bloated and bug prone code. It violates the spirit of the Unix philosophy. For example it isn't simply -r,--recursive. Once that is added then --exclude, --exclude-from, --exclude-dir and --include, special rules for file names "**" and 'skip', 'read', and 'devices' and all rest of the framework that is needed to support it. It isn't small. It isn't simple. It can't be implemented uniformly. Most importantly it both isn't needed and isn't desired. Instead please learn to use 'find' for directory traversal. It works generically with the entire set of file operation utilities. It is a very useful for more programs than simply 'wc'. Being able to use 'find' makes one much more powerful and productive. Useful Resources: http://www.faqs.org/docs/artu/ch01s06.html info coreutils 'wc invocation' Bob -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]