Welcome To Snipplr


Everyone's Recent Bash Snippets



1 ... 15 16 17 18 19 ... 41
Also posted at http://pastebin.com/9FzakUcd
0 720 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 566 posted 14 years ago by jturmel
0 711 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 985 posted 14 years ago by ksaver
2 687 posted 14 years ago by ksaver
1 891 posted 14 years ago by ksaver
0 1259 posted 14 years ago by ksaver
We can use this in a shell script (while doing a backup process, an update, ...)
1 757 posted 14 years ago by isholgueras
0 644 posted 14 years ago by pflangan
0 557 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 714 posted 14 years ago by iloveitaly
Useful to use with crontab for allowing schedule a process below of the minute scope.
0 668 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 748 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 1234 posted 14 years ago by kentoy
the -r means it's recursive, the f suppresses the need to confirm every file deletion.
0 851 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 818 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 676 posted 14 years ago by abhiomkar
Examples borrowed from http://ubuntuforums.org/showthread.php?t=966877 (comment 3)
0 805 posted 14 years ago by cczona
requires swftools
0 879 posted 14 years ago by cczona
1 ... 15 16 17 18 19 ... 41