bash

Thumbnail

15 Linux Bash History Expansion Examples You Should Know

2012/03/02

Here is a nice link on BASH History Expansion. There are lot of examples in this page and some of them might be quite useful. But here are my list of favourites: !! This is probably the most used one …

Using file partially for filenames

2012/02/12

There are some commands that take file name and there are some case where you need to give file name. But there are some cases where you want to modify the file before passing it to the command. What …

better bash debugging

2011/09/16

I was trying to debug some bash scripts yesterday and learnt something new 😉 There are lot of things in bash that you can use to debug and to start with you can enable xtrace mode as follows: set -x …

bash completion

2011/08/09

I was working on some functions in bash to make my life easier and realized that if I added custom completion to my functions, it will be really good. So I headed over to google and searched for what …

faster bash operations on files with File Descriptors.

2011/06/11

I was writing a bash script that would do some operations and read and write to file. Seems that that was pretty simple with […] <td> <div class="text codecolorer"> while …

Unix shell script for removing duplicate files

2011/05/16

The following shell script finds duplicate (2 or more identical) files and outputs a new shell script containing commented-out rm statements for deleting them (copy-paste from here): ::: updated on 02 …

Terminating a SSH session after starting background process.

2011/05/14

 This is too good. If you are planning to start a background process in the bash script in the background and continue in the script, you cannot do it until……. You would need to close the stdout/stdin …

Thumbnail

cd across parallel directories

2011/03/14

Image via Wikipedia […] Here is a simple and fast way to cd across parallel directory.

/bash debugger

2011/02/27

In this section we’ll develop a very basic debugger for bash.[10] Most debuggers have numerous sophisticated features that help a programmer in dissecting a program, but just about all of them include …

some bash exercise for you

2011/02/15

Here is some teaser for you, can you figure out how this works:

bash regular expressions

2011/02/06

Here are some quick links on bash regular expressions, pretty good links to bookmark, if you use, regular expressions in bash regularly. I especially like the tldp link at number 3. …

bash math

2011/01/29

some quick links : http://mainstreetanswers.org/bash/math.php http://www.faqs.org/docs/abs/HTML/mathc.html http://tldp.org/LDP/abs/html/mathc.html


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