Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged find



0 463 posted 13 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 590 posted 13 years ago by kentoy
0 576 posted 14 years ago by bionic
0 650 posted 14 years ago by tm
0 680 posted 14 years ago by tm
0 516 posted 14 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 636 posted 14 years ago by deepsoul
used to sort out empty music-files
0 752 posted 14 years ago by 1b0t
This is useful for upgrading Drupal modules, etc.
0 718 posted 14 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 839 posted 15 years ago by mattkenefick
0 487 posted 15 years ago by kfaulk1
0 447 posted 15 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 788 posted 15 years ago by sanjivarunsahayamhotmailcom
Remove *.LCK for any other extension you want to remove.
0 687 posted 15 years ago by luizlopes
Execute this to remove the .svn directory from the current directory and all sub directories
3 665 posted 16 years ago by meinhard