Simple piped commands...WTF???
Posted: Fri Jun 15, 2007 6:12 pm
Code: Select all
ls -al | cat | grep "Something"Anyone care to enlighten me please
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
ls -al | cat | grep "Something"Code: Select all
grep -Pi "something" *Works for me. Btw, cat is unnecessary here.Hockey wrote:Anyone care to enlighten me pleaseCode: Select all
ls -al | cat | grep "Something"
Code: Select all
la -alr | grep class MyClass_*search all files having a name starting with MyClass_ for the word class. You have to mark class MyClass_* as beeing one parameter with quotes.grep class MyClass_*
Code: Select all
egrep --recursive 'MyClass_' *