The escaped semicolon “\ ” tells -exec where the command ends. name "*.js" -exec grep -iH foo have been replaced with the name. Solution: let “find” call “grep”, as follows.įind. Problems: With many files, the command can become too long and grow beyond the maximum allowed number of characters.įurthermore, the above doesn’t work well with directories whose names have spaces in them. The option i ensure that the search is case-insensitive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |