unix - Searching code files for a particular string -
I am using Ubuntu Karmic as my operating system and I repeatedly use my project folder I have to search, to see if it has any file folder or its subfolders I currently use the search command to find it, and have written a script that searches the string im as a parameter is.
find -exec grep -l $ 1 {} \;
But the problem with it is that it does not work with the wire to be a place in them, so there is no way to discover different strings from space, or what Is there any available tool that works?
Thank you.
How are you implementing your script?
If you want to find different strings from space, then you need to invite
as follows:
Br> % / Script_name.sh 'Search String'
and also to change the invitation to search them:
Find. -exec grep -l "$ 1" {} \;
Comments
Post a Comment