bash

Detecting URLs in a Block of Text

2010/03/31

Jan Goyvaerts on <a href="http://www.regex-guru.info/2008/11/detecting-urls-in-a-block-of-text/" target="_blank">Detecting URLs in a Block of Text In his blog post <a …

Search & replace with find & ed

2010/03/28

function sr() { declare pattern replacement name usage declare -i pvar=0 rvar=0 tvar=0 usage='usage: sr [-t ] [-n name] [-p pattern] [-r replacement] [– ] [dir1 dir2 …]' # cf. <a …

Recursive Regular Expressions

2010/03/24

<img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/yo-dawg-regex.jpg" alt="Yo dawg, I heard you liked regular expressions, so I put a regex in your regex so you can …

bash – change theme for gtk in gnome and take screenshot from script.

2010/03/24

I wrote a blog on bash script to change the icon/cursor theme using a bash script. Lets extend the same concept a little more and use the script to change the gtk theme for gnome and at the same time …

unbound variable – bash completion not working and having issues with other stuff like command not found.

2010/03/23

I generally use vi/vim for all my practical purposes of working with text files. And I have all the vi/vim plugins required to work with the files. This causes the following to be in the skeleton for …

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 …

What is my ip?

2010/03/14

$ alias whatismyip="wget -q -O - <a href="http://whatismyip.com/automation/n09230945.asp"">http://whatismyip.com/automation/n09230945.asp" The preferred way for scripts …

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 …

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 …


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