Welcome To Snipplr
Everyone's Recent Bash Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
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
We can use this in a shell script (while doing a backup process, an update, ...)
1
785
posted 14 years ago by isholgueras
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