Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged Bash



Alle Verzeichnisse überprüfen: [script name] verzeichnis1 verzeichnis2 Alle Dateien vom Typ *html: [script name] verzeichnis1 verzeichnis2
0 1112 posted 17 years ago by endorfin
To see how we can set default values for bash script variables inside bash script
0 1592 posted 17 years ago by jaduks
To find the latest file in a particular dir
1 1785 posted 17 years ago by jaduks
Sum of digits using bash and sed
0 1539 posted 17 years ago by jaduks
Reads a linux file, line by line
2 1675 posted 17 years ago by sanjivarunsahayamhotmailcom
Another way of writing a continuous bash menu.
7 1863 posted 17 years ago by jaduks
0 1216 posted 17 years ago by otaqui
Replace all the occurrences of a string with a replacement in the supplied files.
2 1595 posted 17 years ago by sanjivarunsahayamhotmailcom
A simple method of clearing the data of a hard drive (writing zeros all over it).
2 1644 posted 17 years ago by narkisr
Basic file system manipulation in Linux (some commands require sudo).
0 1226 posted 17 years ago by narkisr
I did not write the script, a friend did.
0 1566 posted 17 years ago by garretjames
0 1505 posted 17 years ago by therobot
If you accidentally deleted files from a subversion working copy, subversion marks them missing instead of deleted. This command will delete them correctly from the repository.
2 4012 posted 17 years ago by afiedler
This is useful for syncing two folders on different computers over ssh (the default transport of rsync).
1 1386 posted 17 years ago by narkisr
Copy a directory (and subdirectories) without .svn files.
0 1417 posted 17 years ago by sanjivarunsahayamhotmailcom
0 1300 posted 17 years ago by moonbather
Searches for some text in a list of files. Displays the results with the filename where the snippet was found.
1 1607 posted 17 years ago by sanjivarunsahayamhotmailcom
0 1056 posted 17 years ago by hdanniel
Simple function which makes it easy to add files to svn in bash (add this to your .bashrc file).
1 1624 posted 17 years ago by narkisr
A bash script that calls Drush for all your multisite sites and returns a list of available and installed modules for each site.
2 1748 posted 17 years ago by berkes
Rename files to lowercase easily
0 1452 posted 17 years ago by nark0ppler
Here's how to copy 2 directories and strip the .svn and .cvs nonsense, basically an export function, but locally
1 1581 posted 17 years ago by vanne
This will start at the specified URL and recursively download pages up to 3 links away from the original page, but only pages which are in the directory of the URL you specified (emacstips/) or one of its subdirectories. wget will also rewrite the...
10 2214 posted 17 years ago by rwczippy
Pre 1.6 git has some annoying whitespace checking in it's pre-commit hook. Rather than turn it off I decided to have a go at an automated method to fix the issue. Running the first line lists the files that have problems. The second just adds a se...
0 2373 posted 17 years ago by benpjohnson
0 1117 posted 17 years ago by rubinsta
Tip from rmartin, but I think I've seen it also on some Ubuntu wiki.
0 1282 posted 17 years ago by Juanje
uses nslookup to find the IP of the domain
1 1691 posted 17 years ago by rwczippy
menu will only quit when 'q' is pressed
2 1962 posted 17 years ago by rwczippy