Welcome To Snipplr


Everyone's Recent Snippets Tagged find



0 1120 posted 14 years ago by greeneggs614
0 2326 posted 14 years ago by silentpro
0 1322 posted 14 years ago by silentpro
0 1005 posted 14 years ago by garnold
Used to retriev a index, for example to select a item on a combobox with the arrayCollection as dataProvider. Usage: comboBoxNames.selectedIndex = findIndex(arrayColNames, "field_on_array_collection", "value_to_compare_with_field_in_array_coll");...
0 1120 posted 14 years ago by msdevweb
1 1393 posted 14 years ago by tribal
1 1492 posted 14 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 1565 posted 14 years ago by timberjorge
0 1529 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 1282 posted 15 years ago by bionic
Come modificare i permessi di tutti i files (senza toccare le cartelle) o viceversa
0 1184 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 1183 posted 15 years ago by jarnaldich
From: http://stackoverflow.com/questions/1169927/using-sed-and-grep-to-search-and-replace
0 1292 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 2767 posted 15 years ago by chrisaiv
-print0 and -0 are used to allow for spaces and other wacky chars in file names
0 1237 posted 15 years ago by jfine
-print0 and -0 are used to allow for spaces and other wacky chars in directory names
0 1115 posted 15 years ago by jfine
3 1666 posted 15 years ago by jamiebrwr
0 1389 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 1652 posted 15 years ago by niels_bom
Find column name in all tables of a database
2 1978 posted 15 years ago by hairajeshk
0 1040 posted 15 years ago by edeustace
So if the ID contains the word Spouse, do x.
1 1363 posted 15 years ago by housecor
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 1196 posted 15 years ago by kentoy
0 1359 posted 15 years ago by pflangan
Finds word "AGM" and replace with acronym or abbr title.
2 1645 posted 15 years ago by vagrantradio
You can use this SP like that; Exec CleanInjection 'INFECTED WORD','CLEAN WORD' (in use : Exec CleanInjection '<script></script>','')
2 1654 posted 15 years ago by emregulcan