Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged Bash



1 ... 6 7 8 9 10 ... 15
0 1503 posted 14 years ago by ksaver
<ol><li>save as filename.sh</li><li>chmod u+x filename.sh</li><li>usage : ./filename.sh\"url\"</li></ol>
1 1517 posted 14 years ago by kentoy
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 1078 posted 14 years ago by gotofritz
1 1149 posted 14 years ago by yisreldov
shows diff while ignoring white spaces
0 892 posted 14 years ago by yisreldov
0 840 posted 15 years ago by orenus
0 815 posted 15 years ago by MikeyLikesIt
1 1172 posted 15 years ago by choise
0 1042 posted 15 years ago by choise
0 904 posted 15 years ago by oznek
0 1178 posted 15 years ago by mvrilo
This command line aims at moving directories from a target location to the present working directory (pwd), backing the pwd directories up as it encounters them. The script works by: 1. Iterating through the contents of the target directory (us...
0 1211 posted 15 years ago by karlhorky
the os x version of realpath works differently than the linux version; the following allows you to attain the same functionality in a shell on os x as `readlink -f $0` on a standard linux dist.
0 1228 posted 15 years ago by iloveitaly
Using a sorted list remove all the lines in file2 from file1
0 772 posted 15 years ago by benpjohnson
Sample BASH .profile for use in cygwin for windows.
0 841 posted 15 years ago by gripnrip
0 859 posted 15 years ago by alemani
This script calculates the network speed up/down
0 884 posted 15 years ago by alemani
Found it on wiki
0 887 posted 15 years ago by TEHEK
This will recursively search your directory tree (starting at dir ‘dot’) and chmod 755 all directories only. find . -type d -exec chmod 755 {} \; Similarly, the following will chmod all files only (and ignore the directories): find . -...
1 1083 posted 15 years ago by MikeyLikesIt
An easy was to tunnel remote Couchdb instance into a local machine using ssh tunneling, by using the 5893 local port we enable the local instance to run (replication is only a click away).
0 1274 posted 15 years ago by narkisr
Usage: `imgsize [file(s)]`
0 879 posted 15 years ago by nijgnet
Usage: `tidyup [file(s)]`
0 724 posted 15 years ago by nijgnet
Tunneling vnc over ssh
0 1051 posted 15 years ago by narkisr
procedure for updating drupal core.
0 769 posted 15 years ago by MikeyLikesIt
This can be used to check if an update of a CMS (or blog, plugin, ...) changed something in the frontend (content or HTML). Run the script with the file that contains the urls as parameter: `wiff.sh urllist.txt` urllist.txt contains the urls...
0 1085 posted 15 years ago by ascarion
1 ... 6 7 8 9 10 ... 15