Welcome To Snipplr


Everyone's Recent Bash Snippets



1 ... 33 34 35 36 37 ... 41
This rendition works for most of my tasks, but the inform may need to be changed to suit base64 encoded files.
0 1513 posted 17 years ago by breakerjump
Example code would remove all files/folders recursively starting from the current folder named file_name
0 1471 posted 17 years ago by jturmel
Some times you need some specific range of lines from a file and the commands 'head' and 'tail' are not enough for you. This could be a easy solution for this problem.
2 2014 posted 17 years ago by Juanje
Sorry, the comentaries are in spanish. I will translate them some day. The examples results are indicated with: # -> [result] Usually is the "echo" result
0 1151 posted 17 years ago by Juanje
Recursively SVN rename (move) all thtml-files to ctp-files . Fires this up in CakePHPs /views path.
0 1667 posted 17 years ago by zingo
A bash script which installs rubygems under ubuntu hardy.
0 1135 posted 17 years ago by narkisr
Good for when you did a checkout when you meant to do an export or what-have-you.
2 1760 posted 17 years ago by trey
This is useful if you have some optional functionality being done which is quite slow on nfs. For example, I have a script that adds scm (svn/git/etc) info to my prompt, but I wouldn't want that when I'm in a repository on an nfs mount.
0 1611 posted 17 years ago by kergoth
This is very useful with dinamic IP connections. You can connect from the host with the dinamic IP, leave the tunnel open to other machine with ssh access and fixed IP and then connect to this machine on specific port (22000 in the example) to connec...
2 1559 posted 17 years ago by Juanje
This script goes to the directory you pass as a parameter and change de version of all the packages found in there. It was used for an amount of packages which were building from the sources but for an lower version of Ubuntu (actually for Guadaline...
0 1113 posted 17 years ago by Juanje
This is a simple script for testing changes in a live iso created with squashfs filesystem for the compression. It will take the iso path as a parameter and it will open it up with unionfs to let you modify its content (into a chroot enviroment) and...
0 1261 posted 17 years ago by Juanje
Little script which call tinyurl.com via 'curl' for generate a sort url of the url you pass.
0 1838 posted 17 years ago by Juanje
0 1231 posted 17 years ago by Juanje
Suppose you created a script chart.rb in /home/foo/ruby/mylib direcory. Now, you want to use this in the app.rb located in /home/foo/ruby/scripts. In ~/.bash_profile:
0 1247 posted 17 years ago by cczona
Useful if you need to run the same command for lots and lots of different parameters
0 2059 posted 17 years ago by wolfie
Useful if you have a shell script running lots of the same command and want to know how many of them have been done
0 1640 posted 17 years ago by wolfie
Run this command to add an /etc/init.d/ startup script to start at os bootup.
0 1398 posted 17 years ago by funkmyer
1 1373 posted 17 years ago by funkmyer
Not sure why I'm posting this madness. Bash can be good for some things though. I think part of the reason I used bash was because I was calling alot of external commands.
0 1469 posted 17 years ago by mandric
Changing default settings The defaults for the ssh-related commands can be altered for each account in a configuration file ~/.ssh/config (there is also a system-wide file, usually /etc/ssh/ssh_config). Each entry starts with a Host keyword. You c...
0 1376 posted 17 years ago by cczona
1 1398 posted 17 years ago by lakedenman
2 2055 posted 17 years ago by therobot
"-b" and "-a" tells grep to show you 10 lines before and 10 lines after
0 1290 posted 17 years ago by lakedenman
1 ... 33 34 35 36 37 ... 41