Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged Bash



1 ... 6 7 8 9 10 ... 15
0 1025 posted 13 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 1009 posted 13 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 662 posted 13 years ago by gotofritz
1 729 posted 13 years ago by yisreldov
shows diff while ignoring white spaces
0 548 posted 13 years ago by yisreldov
0 506 posted 13 years ago by orenus
0 430 posted 13 years ago by MikeyLikesIt
1 771 posted 13 years ago by choise
0 666 posted 13 years ago by choise
0 550 posted 13 years ago by oznek
0 623 posted 13 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 765 posted 13 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 820 posted 14 years ago by iloveitaly
Using a sorted list remove all the lines in file2 from file1
0 448 posted 14 years ago by benpjohnson
Sample BASH .profile for use in cygwin for windows.
0 503 posted 14 years ago by gripnrip
0 517 posted 14 years ago by alemani
This script calculates the network speed up/down
0 526 posted 14 years ago by alemani
Found it on wiki
0 542 posted 14 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 689 posted 14 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 828 posted 14 years ago by narkisr
Usage: `imgsize [file(s)]`
0 544 posted 14 years ago by nijgnet
Usage: `tidyup [file(s)]`
0 421 posted 14 years ago by nijgnet
Tunneling vnc over ssh
0 648 posted 14 years ago by narkisr
procedure for updating drupal core.
0 447 posted 14 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 689 posted 14 years ago by ascarion
1 ... 6 7 8 9 10 ... 15