Hi
My home directory contains lots of files with differing contents and extensions.
I wish to identify all those files containing a sed command in the text.
I thought I could use something like
,
but this seems to look for files with “ sed “ in the filename, not in the contents.
Can anyone help ?
My home directory contains lots of files with differing contents and extensions.
I wish to identify all those files containing a sed command in the text.
I thought I could use something like
Code:
find . –print | grep “ sed “
but this seems to look for files with “ sed “ in the filename, not in the contents.
Can anyone help ?
Comment