Welcome To Snipplr


Everyone's Recent Snippets Tagged unix



0 2156 posted 15 years ago by TailEndChuck
0 1266 posted 15 years ago by apro2000
To rename a bunch of files from "*.foo" to "*.bar" (like windows' REN *.foo *.bar) in unix. Looking at the solution, it is easy to adapt it to more powerful character substitutions on a 1 to 1 basis. If you want to test what will be executed b...
0 1421 posted 15 years ago by jarnaldich
0 1099 posted 15 years ago by isholgueras
0 1417 posted 15 years ago by viatropos
the -r means it's recursive, the f suppresses the need to confirm every file deletion.
0 1416 posted 15 years ago by beneberle
The current time, converted from UNIX timestamp to use in MySQL DATETIME
0 1664 posted 15 years ago by koko
You will be prompted for a password after issuing this command
1 1468 posted 15 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 1712 posted 15 years ago by beneberle
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 1633 posted 15 years ago by karlhorky
Skeleton daemon process for unix
0 1429 posted 15 years ago by sukantahazra
0 1365 posted 15 years ago by sukantahazra
This script pulls in files with [rsync](http://samba.anu.edu.au/rsync/), storing them locally with hardlinks for unchanged, and real files for changed -files. * KEY=$HOME/.ssh/id_dsa_passwdless -- an id_rtsa key without a password. --adding this t...
0 1365 posted 15 years ago by berkes
0 1157 posted 15 years ago by iloveitaly
The first directory listed is the one to copy, the second is where it's copied to.
0 1126 posted 16 years ago by beneberle
credit: tim robinson
0 1238 posted 16 years ago by pdswan
0 1227 posted 16 years ago by hacker
0 1240 posted 16 years ago by hacker
0 1012 posted 16 years ago by danshields
1 1528 posted 16 years ago by danshields
Code for a Rake task that allows compiles all LESS stylesheets (.less) contained within a single directory.
0 1342 posted 16 years ago by brettbergeron
When using `ln` to create a link in a different directory, the semantics of creating hard and symbolic links differ. That is because a hard link contains a direct reference to its target's data, while a symbolic link is just a string containing a (p...
1 1623 posted 16 years ago by deepsoul
0 1112 posted 16 years ago by erichus
This shell script is tested under CentOS / RHEL and Fedora Linux. It should also work under other Linux distributions. If you would like to collect and submit information on your network configuration to your sr. Linux / UNIX admin use this script.
2 2404 posted 16 years ago by mprabhuram