Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged find



0 819 posted 14 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 950 posted 14 years ago by kentoy
0 935 posted 15 years ago by bionic
0 1051 posted 15 years ago by tm
0 1083 posted 15 years ago by tm
0 874 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 1044 posted 15 years ago by deepsoul
used to sort out empty music-files
0 1186 posted 15 years ago by 1b0t
This is useful for upgrading Drupal modules, etc.
0 1121 posted 15 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 1345 posted 16 years ago by mattkenefick
0 874 posted 16 years ago by kfaulk1
0 803 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 1183 posted 16 years ago by sanjivarunsahayamhotmailcom
Remove *.LCK for any other extension you want to remove.
0 1107 posted 16 years ago by luizlopes
Execute this to remove the .svn directory from the current directory and all sub directories
3 1067 posted 17 years ago by meinhard