bash
Download with browse with bash and wget
2010/05/09
Been pretty busy for last couple of days. Will be busy for another few days, but here’s something to munch in the meantime (Script may need changes depending on the type of file you want to …
Delete all files in a folder that don’t match a certain file extension
2010/04/30
$ rm !(.foo|.bar|*.baz) Deletes all files in a folder that are NOT *.foo, *.bar or *.baz files. Edit the pattern inside the brackets as you like. […] <a …
Convert decimal numbers to binary
2010/04/21
There is a calculator called bc that works in the command line. So if you need a quick calculator function in the command line then you could write some functions that will do the trcik for you. Here …
recursively add directory and files to cvs from Linux.
2010/04/12
Go to the directory which you want to add to cvs and execute the following: […] cvs login find . -type d -exec cvs add {} \; find . -type f -exec cvs add {} \; cvs commit […] That was …
Afraid Dynamic DNS client in Fedora with Email indicating the changed to original IP.
2010/04/12
If you have your domain in the Dynamic DNS located at : <a href="http://freedns.afraid.org">Freedns then you know how difficult it is to get the Dynamic DNS client to work with Fedora. …
Quick notepad in bash without any editor
2010/04/12
$ «.>note Bash internal quick note taker, avoiding calling external programs like cat […] <a href="http://www.commandlinefu.com"><img …
Linux Shell Scripting Tutorial – A Beginner\’s handbook
2010/04/11
<a class="zem_slink freebase/en/unix_shell" title="Unix shell" rel="wikipedia" href="http://en.wikipedia.org/wiki/Unix_shell">Linux Shell Scripting …
Jokes – many to be downloaded once..
2010/04/11
All work and no fun makes Jack dull boy. So lets do something for fun. Here is a one liner I wrote sometime back. The original idea is not mine and I don’t remeber where I got the idea from …
core dump checking script.
2010/04/11
I was testing a program which crashing every now and then. It is very difficult in such scenarios to keep looking for the <a class="zem_slink" title="Core dump" …
Bash completion error — quote_readline.
2010/04/11
There is a problem with bash completion with quote_readline that causes the completion to fail. The problem is fixed in the bash completion package but there are still some other programs which are …
Advanced Sed Substitution Examples
2010/04/11
This article is part of the on-going Unix Sed Tips and Tricks series. In our previous sed articles we learned — sed printing, sed deletion, sed substitute , sed file write, and sed multiple commands. …
PuTTY export client display on login for opening X application and terminal.
2010/04/11
export DISPLAY=$(echo $SSH_CLIENT |awk '{print $1”:0.0”}’) […] Explanation: SSH_CLIENT contains the IP and the port of the client machine. So we need to export …