Welcome To Snipplr


Everyone's Recent Bash Snippets



1 ... 15 16 17 18 19 ... 41
Also posted at http://pastebin.com/9FzakUcd
0 745 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 588 posted 14 years ago by jturmel
0 736 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 1012 posted 14 years ago by ksaver
2 712 posted 14 years ago by ksaver
1 919 posted 14 years ago by ksaver
0 1296 posted 14 years ago by ksaver
We can use this in a shell script (while doing a backup process, an update, ...)
1 785 posted 14 years ago by isholgueras
0 672 posted 14 years ago by pflangan
0 583 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 734 posted 14 years ago by iloveitaly
Useful to use with crontab for allowing schedule a process below of the minute scope.
0 689 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 773 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 1264 posted 14 years ago by kentoy
the -r means it's recursive, the f suppresses the need to confirm every file deletion.
0 882 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 842 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 706 posted 14 years ago by abhiomkar
Examples borrowed from http://ubuntuforums.org/showthread.php?t=966877 (comment 3)
0 839 posted 14 years ago by cczona
requires swftools
0 906 posted 14 years ago by cczona
1 ... 15 16 17 18 19 ... 41