Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged find



« Prev 1 2 3
Recursively find and list the last modified files in a directory
0 4214 posted 9 years ago by rm1984
Find and replace
0 1810 posted 13 years ago by inreflection7
Find and List all the files with extension .file containing/not containing the given string "STRING" The snippet is set to "containing", to switch it to "not containg" just replace "grep -l" with "grep -L" containing : grep -l not containing:...
0 1797 posted 13 years ago by claudiodev
trims spaces from the source code and left align the code column
0 1577 posted 14 years ago by ferro
Find a directory withing a compressed file and remove it.
0 1759 posted 14 years ago by bionic
A fast and easy way to go through all vim-pathogen bundles and perform a git pull on all of them.
0 2037 posted 14 years ago by luizlopes
Fast and easy way to find a keyword inside of files located inside of a directory tree. (eg: looking for a function foo, inside of your applications directory.) This command will display a list of files which contain function foo.
0 1756 posted 14 years ago by luizlopes
found via google: http://www.unix.com/unix-dummies-questions-answers/133697-find-folders-do-not-contain-certain-file.html
1 1680 posted 14 years ago by pspierce
Output Example: d65bfef64a5fc9f7dbf9d35d80a2e1ed218c75d2 ./tmp1/12414.txt d65bfef64a5fc9f7dbf9d35d80a2e1ed218c75d2 ./tmp2/2012.txt d65bfef64a5fc9f7dbf9d35d80a2e1ed218c75d2 ./tmp1/3153.txt dd07cec149e7c5929d6e9a0618de7114d50b34b0 ./tmp...
0 1848 posted 14 years ago by ksaver
0 1408 posted 14 years ago by mkornatz
0 1612 posted 14 years ago by troyaner
0 1725 posted 14 years ago by loungerdork
0 1424 posted 14 years ago by loungerdork
0 1300 posted 14 years ago by greeneggs614
1 1607 posted 15 years ago by tribal
1 1741 posted 15 years ago by Risse
1. You'll need the perl-based rename script http://tips.webdesign10.com/how-to-bulk-rename-files-in-linux-in-the-terminal 2. I'm using Terminal on mac so you might need to change some of your flags
0 1816 posted 15 years ago by timberjorge
0 1732 posted 15 years ago by lamebollock
From the referenced website: Well, that command speaks for itself "sed" edits "-i in place ( on the spot ) and replaces the word "ugly with "beautiful" in the file "/home/bruno/old-friends/sue.txt"
0 1487 posted 15 years ago by bionic
Come modificare i permessi di tutti i files (senza toccare le cartelle) o viceversa
0 1404 posted 15 years ago by tuffo19
Searches down the current directory every file whose name matches (case insensitively) {{file_pattern}} for the regexp {{text}}.
0 1405 posted 15 years ago by jarnaldich
From: http://stackoverflow.com/questions/1169927/using-sed-and-grep-to-search-and-replace
0 1537 posted 15 years ago by edeustace
You did a checkout when you really wanted to do an export. Now there are tons of .svn folders in your project, and you need them to go away. Shell scripting to the rescue.
0 3034 posted 15 years ago by chrisaiv
-print0 and -0 are used to allow for spaces and other wacky chars in file names
0 1456 posted 15 years ago by jfine
-print0 and -0 are used to allow for spaces and other wacky chars in directory names
0 1365 posted 15 years ago by jfine
0 1611 posted 15 years ago by moonbather
I use this bash oneliner all the time to recursively search for a string in large codebases. I use it when searching for mentions of tables, databases, function definitions, function calls etcetera.\r\n\r\nIt searches through a number of file types (...
1 1920 posted 15 years ago by niels_bom
« Prev 1 2 3