Welcome To Snipplr
Everyone's Recent Bash Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
cURL can be used in place of wget
Use this command to download a file into filesystem using terminal.
0
2565
posted 16 years ago by mprabhuram
You will be prompted for a password after issuing this command
1
2046
posted 16 years ago by beneberle
Replace filename with the name you want to give the zip file. The .zip extension is automatically appended to the end of the filename. Replace inputfile1 and inputfile2 with the names of the files you wish to include in the zip archive. You can inclu...
2
2360
posted 16 years ago by beneberle
1st shows only files and directories bigger than 1 Megabyte
2nd shows only files and directories bigger than 100 Megabyte
0
1784
posted 16 years ago by kossmoss
A quick script to add all of your unversioned files. Good when working in bulk.
0
1593
posted 16 years ago by philsown
Bash
Bash (Command Line): Loop through directories in specified location, replacing directories in current directory (with backup)
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
2257
posted 16 years ago by karlhorky
If you accidentally exit while doing an interactive rebase, you can clean it with this command.
0
1726
posted 16 years ago by stayce
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
2098
posted 16 years ago by iloveitaly