Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged find



0 916 posted 15 years ago by edeustace
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 1065 posted 15 years ago by kentoy
0 1068 posted 15 years ago by bionic
0 1159 posted 15 years ago by tm
0 1209 posted 15 years ago by tm
0 985 posted 15 years ago by joe-bbb
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 1154 posted 15 years ago by deepsoul
used to sort out empty music-files
0 1434 posted 15 years ago by 1b0t
This is useful for upgrading Drupal modules, etc.
0 1271 posted 16 years ago by jmiller
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 1662 posted 16 years ago by mattkenefick
0 994 posted 16 years ago by kfaulk1
0 901 posted 16 years ago by kfaulk1
Searches for some text in a list of files. Displays the results with the filename where the snippet was found.
1 1314 posted 16 years ago by sanjivarunsahayamhotmailcom
Remove *.LCK for any other extension you want to remove.
0 1279 posted 17 years ago by luizlopes
Execute this to remove the .svn directory from the current directory and all sub directories
3 1381 posted 17 years ago by meinhard