bash
Useless Linux Terminal Commands
2010/03/21
Useless Linux Terminal Commands Not long ago, I have listed here some useful Linux terminal commands and those that I described as deadly. This time, I decided to gather some commands that I think …
Quick tip to change parameters in different files
2010/03/16
The above command is very useful to change certain regular expressions in couple of files in one directory. This can be used in variety of ways to achieve a lot of things which would normally take …
Some bashrc shorcuts for faster and profiecient directory browsing.
2010/03/10
Here are some of the funtions that I have in my bashrc to make my life simple. They are not written by me but mostly taken from other places, but modified by me to some extent to suit my needs. If you …
Bash script to view log and config file in different server and paths.
2010/03/09
I was working on a project, where I need to open file from different servers and different paths. I do it with the command: […] vim ftp://username@server/path/filename […] This is okay …
create SQL-statements from textfile with awk
2010/03/08
<td> <div class="text codecolorer"> $ $ awk \'{printf "select * from table where id = %c%s%c;\\n",39,$1,39; }\' inputfile.txt </div> </td> </tr> …
Bash histoy – common history in different terminals
2010/03/04
I have been looking to do this for sometime. The bash history is per session basis and the last session to quit overwrites the bash_history file and thus all other terminals started between the time …
Bash Sub Shells
2010/03/02
Taken from <a href="http://www.linuxjournal.com/content/bash-sub-shells" target="_blank">here. […] <span class=\"c\">#!/bin/bash</span> <span …
bash script with sql to get the number of records from multiple tables.
2010/02/10
Here is the bash script: […] #!/bin/sh names[1]=errorlog names[2]=amit1log names[3]=amit2log names[4]=amit3log names[5]=amit4log j=1 echo $1 for i in $( sqlplus amit/passwd@tns @get_count.sql …
Bash styling(themeing), the stylist way.
2010/02/04
For last couple of days, I have been looking for solutions to make stlying my bash easier. So, first a screenshot of the effort: <img class="size-full wp-image-703" title="bash …
grep -v with multiple patterns.
2010/01/25
$ sed '/test/{/error|critical|warning/d}' somefile If you wanted to do all in one command, you could go w/ sed instead […] <a href="http://www.commandlinefu.com"><img …
sed tutorial and help
2010/01/21
A very nice turorial and help <a href="http://sed.sourceforge.net/grabbag/tutorials/">here.
change the terminal title dynamically in X11
2010/01/09
I was actually looking for this for quite sometime. Some years back in my bashrc was the proper setting for setting the terminal title when I did a cd, and I had completely forgotten how to do it. So …