finds if all files in the current directory contain “XXXXX” text:
grep -r "xxxxx"
p>
finds if a file in the current directory contains the text “XXXXX” :
find ./ -type f -name "filename.filetype" | xargs grep "xxxxx"
p>
div>
Read More:
- Linux shell RM deletes all. O suffix files in the subdirectory
- Grep finds all files containing a string in Linux
- Common linux commands — find command’s Exec
- Delete files with specified suffix in specified folder under Linux
- How to search files or folders in Ubuntu
- Linux common problems and Solutions
- Java jar close startup script
- Java – read all the files and folders in a certain directory and three methods to get the file name from the file path
- Linux shell gets the file name under the folder
- Python idle add configuration shortcut (Ctrl + L)
- Solve syntax error: unexpected end of file or /bin/bash^m: bad interpeneter: no match file or directory
- Zookeeper start error [How to Solve]
- Mac reports an error zsh: fork failed: resource temporarily unavailable (reasons and solutions)
- Git centenary export package file command
- Perl application – delete “. SVN” folder in current directory and subdirectory
- Batch delete process
- Batch modification of file names on MAC Linux rename command line
- Mac realizes file interaction (upload and download) between terminal and server
- Solution: when cmake is compiled, “error in configuration process project files may be invalid” appears
- Flex Error #2032 Stream Error