Updated a bit from my original submission. (:
perl -lne 'print for grep /filename/, </home/$_/bin/*>`
without the "-l", you need to chomp or $_ will have a trailing newline, which would cause you problems. Thanks to kanji for mentioning that -l auto-chomps, which I hadn't been aware of.
- tye (but my friends call me "Tye")In reply to (tye)Re: Command line question
by tye
in thread Command line question
by monk2b
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |