Welcome To Snipplr


Everyone's Recent Snippets Tagged Bash



1 ... 6 7 8 9 10 ... 17
updated...
0 1268 posted 15 years ago by nathwill
from: http://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/
0 1637 posted 15 years ago by edeustace
0 1004 posted 15 years ago by edeustace
Yes, my code sucks, but I hope it will be useful... :-)
1 1237 posted 15 years ago by ksaver
0 1042 posted 15 years ago by rkumar
Add user foo to group bar
0 1324 posted 15 years ago by smoover
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 1643 posted 15 years ago by ksaver
2 1291 posted 15 years ago by ksaver
1 1460 posted 15 years ago by ksaver
0 1925 posted 15 years ago by ksaver
first try, use with care
0 3365 posted 15 years ago by birdspider
<ol><li>save as filename.sh</li><li>chmod u+x filename.sh</li><li>usage : ./filename.sh\"url\"</li></ol>
1 2185 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 1540 posted 15 years ago by gotofritz
For use in bash script. First two lines are an example of usage. This is one of several solutions to this problem. Works well for cleaning database output. Takes a regex and two files as arguments - first one is raw db output - second is merged outpu...
1 3605 posted 15 years ago by bubnoff
1 1750 posted 15 years ago by yisreldov
shows diff while ignoring white spaces
0 1135 posted 15 years ago by yisreldov
0 1120 posted 15 years ago by orenus
0 1100 posted 15 years ago by MikeyLikesIt
1 1573 posted 15 years ago by choise
0 1406 posted 15 years ago by choise
0 1227 posted 15 years ago by oznek
0 1826 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 1746 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 1595 posted 15 years ago by iloveitaly
Using a sorted list remove all the lines in file2 from file1
0 1010 posted 15 years ago by benpjohnson
1 ... 6 7 8 9 10 ... 17