Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged Bash



1 ... 6 7 8 9 10 ... 15
0 1649 posted 15 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 1820 posted 15 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 1241 posted 15 years ago by gotofritz
1 1424 posted 15 years ago by yisreldov
shows diff while ignoring white spaces
0 962 posted 15 years ago by yisreldov
0 933 posted 15 years ago by orenus
0 924 posted 15 years ago by MikeyLikesIt
1 1311 posted 15 years ago by choise
0 1180 posted 15 years ago by choise
0 994 posted 15 years ago by oznek
0 1424 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 1439 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 1333 posted 15 years ago by iloveitaly
Using a sorted list remove all the lines in file2 from file1
0 860 posted 15 years ago by benpjohnson
Sample BASH .profile for use in cygwin for windows.
0 919 posted 15 years ago by gripnrip
0 963 posted 15 years ago by alemani
This script calculates the network speed up/down
0 972 posted 15 years ago by alemani
Found it on wiki
0 985 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 1230 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 1391 posted 15 years ago by narkisr
Usage: `imgsize [file(s)]`
0 1026 posted 15 years ago by nijgnet
Usage: `tidyup [file(s)]`
0 823 posted 15 years ago by nijgnet
Tunneling vnc over ssh
0 1155 posted 15 years ago by narkisr
procedure for updating drupal core.
0 851 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 1219 posted 15 years ago by ascarion
1 ... 6 7 8 9 10 ... 15