How do I set an alias, such as "mysearch", which will search for a string recursively in the directory I'm standing in. It should be as below:
mysearch "this table..."
=
find -type f -exec grep -i -l 'this table...' {} \;
|
I'd say like this (for bash):
The issue with an alias is that it only allows you to append to the command, not insert into the middle. As an alias, this might be more what you want:
Then you could use it like:
|
|||
|
|
findat all?grephad a recursive (-r) option. – FatalError Mar 28 '12 at 17:38