Welcome To Snipplr


Everyone's Recent Bash Snippets



1 ... 15 16 17 18 19 ... 41
Also posted at http://pastebin.com/9FzakUcd
0 701 posted 14 years ago by ksaver
So we use Gerrit for code reviewing and I run **git commit --amend** quite a bit, a lot of times I don\\\'t want to amend the message I just want to add my new files to my existing commit and keep working, this makes that part easier. Just add this...
0 544 posted 14 years ago by jturmel
0 692 posted 14 years ago by raphaelcangucu
Usage example:\\r\\n$./ur1ca.sh \\\"http://www.google.com/search?q=bash+scripting\\\"\\r\\nYour ur1 is: http://ur1.ca/17xpn\\r\\n$
1 971 posted 14 years ago by ksaver
2 672 posted 14 years ago by ksaver
1 873 posted 14 years ago by ksaver
0 1234 posted 14 years ago by ksaver
We can use this in a shell script (while doing a backup process, an update, ...)
1 740 posted 14 years ago by isholgueras
0 632 posted 14 years ago by pflangan
0 541 posted 14 years ago by barbelith
Useful when having multiple ssh connections to remote servers open in os x. Throw this in your ~/.bash_profile
0 694 posted 14 years ago by iloveitaly
Useful to use with crontab for allowing schedule a process below of the minute scope.
0 646 posted 14 years ago by wnasich
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 724 posted 14 years ago by kentoy
<ol><li>save as filename.sh</li><li>chmod u+x filename.sh</li><li>usage : ./filename.sh\"url\"</li></ol>
1 1204 posted 14 years ago by kentoy
the -r means it's recursive, the f suppresses the need to confirm every file deletion.
0 838 posted 14 years ago by beneberle
Quick Look is the little window you get in Finder when you select a file and press the space bar. You can get the same from the command line with the following command (-p is a full window, -t is a thumbnail). You can even output it to a file with th...
0 800 posted 14 years ago by gotofritz
Input: .jpg images of current directory\r\n\r\nOutput: the thumbnails will be generated in \'thumb\' folder
0 662 posted 14 years ago by abhiomkar
Examples borrowed from http://ubuntuforums.org/showthread.php?t=966877 (comment 3)
0 790 posted 14 years ago by cczona
requires swftools
0 866 posted 14 years ago by cczona
1 ... 15 16 17 18 19 ... 41