About The Author
I am a software programmer working in India. I usually like to blog in my free time....Read More
- Data Structures
- memory leaks
- One liners
- pattern match
- perl script
- shell variable
- ▼ April (7)
- ► 2013 (50)
Powered by Blogger.
I have two files File 1 contains 3 fields File 2 contains 4 fields The number of rows of File 1 is much smaller than that of File 2 I...
At times you need to specify different courses of action to be taken in a shell script, depending on the success or failure of a command. Th...
Join command is one of the text processing utility in Unix/Linux. Join command is used to combine two files based on a matching fields in th...
Often we need to execute some shell command and get the output of that shell command in c. system will simply execute the shell command but...
Below is a implementation of Graph Data Structure in C++ as Adjacency List. I have used STL vector for representation of vertices and STL ...
Below is a most simple command for Sorting Unix processes by highest memory usage: ps -eo pmem,pid,pcpu,rss,vsz,time,args | sort -k 1 -r ...
Most of the time it is required that w eneed to rename the files in bulk. this can be done in many ways,Mostly people do it by writing a s...
In general many of us might get irritated by working on vi editor since we are more used to MSword/any windows editor.Below i present some v...
In unix, if we run a process(a shell script).It will not return to the terminal untill the script ends. lets say there is a script temp.sh ...
This awk one-liner works for multi-column on unsorted files. Comparision is done based on 1st,2nd,3rd,4th of the first file and 1st,3rd,6th,...