Welcome To Snipplr
Everyone's Recent Bash Snippets Tagged find
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
find files using "find" and piping the output to rm using xargs; 1st argument to find is the search directory (command substituted in this example by `pwd`)
0
590
posted 13 years ago by kentoy
Find the most recently modified file in a directory tree and output its name and modification time. Use index 8 or 10 instead of 9 for access and inode modification time, respectively (see perlfunc manual page - function stat).
This is great for...
0
636
posted 14 years ago by deepsoul
find . | xargs grep 'string' -sl
The -s is for summary and won't display warning messages such as grep: ./directory-name: Is a directory
The -l is for list, so we get just the filename and not all instances of the match displayed in the results...
2
839
posted 15 years ago by mattkenefick
Searches for some text in a list of files. Displays the results with the filename where the snippet was found.
1
788
posted 15 years ago by sanjivarunsahayamhotmailcom
Execute this to remove the .svn directory from the current directory and all sub directories
3
665
posted 16 years ago by meinhard