bash

Menu driven ssh.

2010/05/24

I have quite a lot of servers where I need to ssh at workplace and I generally don’t remember all of them, so I wrote a simple yet useful script. In all the servers I have already copied my …

Display the history and optionally grep

2010/05/19

Ever wondered how good it would be to have a command/function that would display the history or display the history with <a class="zem_slink" title="Grep" …

Awk Introduction Tutorial – 7 Awk Print Examples

2010/05/19

awk examples Awk Introduction Tutorial – 7 Awk Print Examples This is the first article on the new awk tutorial series. We’ll be posting several articles on awk in the upcoming weeks that will cover …

Mirror or download a website with a tool much better than wget

2010/05/19

If you want to mirror a <a class="zem_slink freebase/en/website" title="Website" rel="wikipedia" href="http://en.wikipedia.org/wiki/Website">website, the …

List all the installed firefox addons from the bash script

2010/05/18

Here is a one-line that would help you get the <a class="zem_slink freebase/en/mozilla_firefox" title="Firefox" rel="homepage" …

Get the most favourite commands from commandlinefu

2010/05/12

For those of you who don&#8217;t know, commandlinefu should be one place you should watch to learn new things for command line. Everyday a lot of people post commands to better the previously …

Pipe stdout and stderr, etc., to separate commands

2010/05/11

$ some_command > >(/bin/cmd_for_stdout) 2> >(/bin/cmd_for_stderr) You can use [n]> combined with >(cmd) to attach the various output file descriptors to be the input of different …

Easier Reinstalls

2010/05/10

Easier Reinstalls I typically reinstall my computer operating system every six months. The reasons for this are that it cleans out the system and reinstalls require me to be in front of the computer …

coproc help - a new feature in bash

2010/05/10

In the <a class="zem_slink freebase/en/bash" title="Bash" rel="homepage" href="http://tiswww.case.edu/php/chet/bash/bashtop.html">bash version 4.0, there …

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&#8217;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 …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it