15 Practical Grep Examples in Linux Unix
15 Practical Grep Examples in Linux Unix
http://www.thegeekstu.com/2009/03/15-practica...
Home
Free eBook
Contact
About
Start Here
Me gusta
155 Tweet
86
1 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
examples for Linux nd command, Linux command line history and mysqladmin
command.
In this article let us review 15 practical examples of Linux grep command that will be
very useful to both newbies and experts.
First create the following demo_le that will be used in the examples below to
demonstrate grep command.
$ cat demo_file
THIS LINE IS THE 1ST UPPER CASE LINE IN THIS FILE.
this line is the 1st lower case line in this file.
This Line Has All Its First Character Of The Word With Upper Case.
Two lines above this line is empty.
And this is the last line.
This is also a basic usage of grep command. For this example, let us copy the demo_le
to demo_le1. The grep output will also include the le name in front of the line that
matched the specic pattern as shown below. When the Linux shell sees the meta
character, it does the expansion and gives all the les as input to grep.
$ cp demo_file demo_file1
$ grep "this" demo_*
demo_file:this line is the 1st lower case line in this file.
demo_file:Two lines above this line is empty.
demo_file:And this is the last line.
demo_file1:this line is the 1st lower case line in this file.
demo_file1:Two lines above this line is empty.
demo_file1:And this is the last line.
2 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
This is also a basic usage of the grep. This searches for the given string/pattern case
insensitively. So it matches all the words such as the, THE and The case
insensitively as shown below.
This is a very powerful feature, if you can use use regular expression eectively. In the
following example, it searches for all the pattern that starts with lines and ends with
empty with anything in-between. i.e To search lines[anything in-between]empty in
the demo_le.
$ grep "lines.*empty" demo_file
Two lines above this line is empty.
3 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
The following example is the WORD grep where it is searching only for the word is.
Please note that this output does not contain the line This Line Has All Its First
Character Of The Word With Upper Case, even though is is there in the This, as the
following is looking only for the word is and not for this.
$ grep -iw "is" demo_file
THIS LINE IS THE 1ST UPPER CASE LINE IN THIS FILE.
this line is the 1st lower case line in this file.
Two lines above this line is empty.
And this is the last line.
e
E
b
B
w
W
go
go
go
go
go
go
to
to
to
to
to
to
the
the
the
the
the
the
WORD - WORD consists of a sequence of non-blank characters, separated with white space.
4 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
The following example prints the matched line, along with the 3 lines after it.
$ grep -A 3 -i "example" demo_text
Example to show the difference between WORD and word
* 192.168.1.1 - single WORD
* 192.168.1.1 - seven words.
When you had option to show the N lines after match, you have the -B option for the
opposite.
$ grep -B 2 "single WORD" demo_text
Example to show the difference between WORD and word
* 192.168.1.1 - single WORD
5 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
As grep prints out lines from the le by the pattern / string you had given, if you wanted
it to highlight which part matches the line, then you need to follow the following way.
When you do the following export you will get the highlighting of the matched searches.
In the following example, it will highlight all the this when you set the GREP_OPTIONS
environment variable as shown below.
$ export GREP_OPTIONS='--color=auto' GREP_COLOR='100;8'
$ grep this demo_file
this line is the 1st lower case line in this file.
Two lines above this line is empty.
And this is the last line.
10. display the lines which does not matches all the given pattern.
Syntax:
grep -v -e "pattern" -e "pattern"
$ cat test-file.txt
a
b
c
6 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
d
$ grep -v -e "a" -e "b" -e "c" test-file.txt
d
When you want do nd out how many lines matches the pattern
$ grep -c this demo_file
3
When you want do nd out how many lines that does not match the pattern
$ grep -v -c this demo_file
4
12. Display only the le names which matches the given pattern
using grep -l
If you want the grep to show out only the le names which matched the given pattern,
use the -l (lower-case L) option.
When you give multiple les to the grep as input, it displays the names of le which
contains the text that matches the pattern, will be very handy when you try to nd some
notes in your whole directory structure.
$ grep -l this demo_*
demo_file
demo_file1
7 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
Note: The output of the grep command above is not the position in the line, it is byte
oset of the whole le.
15. Show line number while displaying the output using grep -n
To show the line number of le with the line matched. It does 1-based line numbering
for each le. Use -n option to utilize this feature.
$ grep -n "go" demo_text
5: * e - go to the end of the current word.
6: * E - go to the end of the current WORD.
7: * b - go to the previous (before) word.
8: * B - go to the previous (before) WORD.
9: * w - go to the next word.
10: * W - go to the next WORD.
8 of 37
Tweet
86
11/08/2014 12:58 AM
Me gusta
http://www.thegeekstu.com/2009/03/15-practica...
155
Tags: File Search Utility, Grep Command, Highlight Search Output, Linux Full-Text
Searching, Linux Grep Command, Search File Content, Search Multiple Files
{ 114 comments read them below or add one }
9 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
-e PATTERN, --regexp=PATTERN
Use PATTERN as the pattern; useful to protect patterns beginning with -.
10 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
11 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
I am trying to exclude the last word of all the line like sync.php, uploads.php,
backup.php
File text include as below
/usr/home/htdocs/drag-and-drop/htdocs.php
/usr/home//htdocs/sms/publish/pages/sync.php
/usr/home/htdocs/track/backup.php
/usr/home/htdocs/smstest/smstest.php
/usr/home/htdocs/uploads.php
/usr/home/htdocs/017/backup.php
How can I achieve that using grep or sed or awk
Also how I can use * wildcard in sed command like to replace *.php to *.txt or any
other extension.
Thank you in advance.
Manish
13 Francesco Talamona May 21, 2009 at 10:36 pm
Are you restricted to sed or awk?
1)
dirname /usr/home/htdocs/drag-and-drop/htdocs.php
/usr/home/htdocs/drag-and-drop
2)
rename does what you want
14 Manish Patel May 24, 2009 at 6:55 pm
Hi,
Those lines are the contents of the text le and I dont want to change the actual
directory or the le on server. I want to change the contents of the le where all le
le names ending at the line should be removed. So the nal le contents should
look like this
cat lecontenet.txt
/usr/home/htdocs/drag-and-drop/
/usr/home//htdocs/sms/publish/pages/
/usr/home/htdocs/track/
/usr/home/htdocs/smstest/
/usr/home/htdocs/
/usr/home/htdocs/
I think rename would not help here in editing le contents.
12 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
Thank you
Manish
15 SathiyaMoorthy May 24, 2009 at 11:43 pm
rev lecontenet.txt | cut -d/ -f2- | rev
rev lecontenet.txt > reverses the le and pipes to cut command.
cut -d/ -f2- > cuts o the rst eld ( cuts o last eld, as it is reversed ).
rev > prints the output given order.
16 P0B0T May 26, 2009 at 11:36 pm
Manish,
I believe youre looking for the following
sed -e s/.php$// lecontenet.txt
17 P0B0T May 26, 2009 at 11:39 pm
Sorry, didnt read your requirement carefully.
Try this:
sed -e s/\/[^/]*.php$/\// lecontenet.txt
18 Manish Patel June 5, 2009 at 5:31 pm
Hi
Thank you to Sathiya Moorthy and P0B0T.
Both solution worked very nicely for me.
P0B0T can you explain how your command works for each dened option s/\/[^
/]*.php$/\//
Thank you
Manish
19 mano June 10, 2009 at 3:00 am
The above info on grep is really great. I want to search for a string in all the les in
the directory and add a $ symbol at the start of the searched line and save in the
same le.
20 SathiyaMoorthy June 18, 2009 at 10:49 pm
@mano
More than using grep for this requirement, you can use sed which is:
sed -i s/.*abc.*/$&/ *
13 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
14 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
@Vidhya
$ grep -o -E -g \w+ -e \w+ FILENAME
-g gateway -e enterprise
Explanation of the above command.,
-o : only matching ( point 13. )
-E : extended regexp
: indicate end of options
\w+ : word
25 Vidya July 1, 2009 at 9:00 am
Hi Sathiya,
Its not working.
It says
grep: illegal option o
grep: illegal option E
Usage: grep -hblcnsviw pattern le . . .
I am working on Solaris and setting shell as bash.
26 Amit Agarwal September 21, 2009 at 6:18 am
grep version on solaris is little older and as man would show you all these options
are not available, so you can try ack (standalone) version which is very powerful
and requires only perl to be installed.
27 learner October 7, 2009 at 5:31 am
Hi,
How to use grep to nd lines containing multiple strings
ex: line1:Today is oct 7, wednesday. not 8th
line2: This is not summer.
line3: when is summer?
I want to return line2 containing strings not and summer both.
Thank You.
28 SathiyaMoorthy October 7, 2009 at 10:41 am
@learner
There are several ways possible, use the one which you nd as appropriate.
$ grep "not.*summer" file1
line2: This is not summer.
$ grep "not" file1 | grep "summer"
line2: This is not summer.
15 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
16 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
Hi,
I need to sthing like this
I have a le containing 400 domainId values seprated by new line
ex. domain.txt
domain1
domain2
domain3
I have a script that takes each domain and calls an api that returns me an xml.
like this for each domain
<tag1>val1</tag1>
<domain>domain1</domain>
<tag2>val2</tag2>
<tag3>val3</tag3>
<tag4>val4</tag4>
<domainid>XXX</domainid>
<tag5>val1</tag5>
now i want to spit out the domain name in a le that does not matches domainid
value XXX.
how can i do it using grep
TIA
32 Varun December 17, 2009 at 7:16 am
Hi,
The options mentioned in point 6 for displaying the context with A, B, & C does not
seem to work on Solaris 10 with both grep & egrep
Is there a version of this grep available for Solaris?
Thank you,
Varun.
33 Jawn Hewz December 21, 2009 at 7:54 pm
Does the -b (byte oset) work when greping binary les? I do not get an oset
returned when I grep a binary le, but I do when using a text le. I am using grep
under Cygwin.
34 fety January 11, 2010 at 3:32 am
thanks very much for this tutorial. it is very helpful..
35 eMancu January 24, 2010 at 12:49 pm
Awsome tutorial!
Im reading all your blog, its amazing!
17 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
19 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
@mathan
There is nothing like exiting from grep.
First argument to grep is taken as PATTERN, not as lename. So as far as i
understand it is waiting for input to match. So just exit from it using CTRL+D.
49 Ross Huggett September 16, 2010 at 5:04 am
Nice article. Thanks.
50 ec October 6, 2010 at 6:14 pm
Hi to all,
I just started to learn linux a month ago
Can I extract 2 to 6 letter words from a text le using one grep command only!
To mention that each word is on its own line
whats the grep command to do this job?
I tried any combination of grep and not the result which I am looking for
51 Lou February 24, 2011 at 1:16 pm
Is there a way to grep for a word on in a le and return that line plus the next?
52 Francesco Talamona February 26, 2011 at 3:33 am
@ Lou:
cat testle.txt
rst line
matching line
following line
ending line
grep matching -B 1 testle.txt
rst line
matching line
53 abhishek kumar April 19, 2011 at 12:53 pm
really to nice and too simple to understand,
thats great
thank you
54 Nikita April 21, 2011 at 12:06 pm
PLEASE HELP ON QUESTION B.
You are searching a le for lines that contain US state abbreviations in
parentheses. e.g.: (ma),(NH),(Ky), etc. So you decide to match any line containing (
20 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
Noe Greap searches for pattern # in a list of le starting as input and nding a txt
and then awk prints the 4th eld and sort is doing sorting the 4th eld returns from
awk and unis is doing uniq operation.
63 Dinesh September 22, 2011 at 12:45 pm
Shyam
grep [^A-Z] le.txt
Grep will print the lines that does not start with CAPTIAL LETTERS.
Using ^ inside the [] will do the work opposite to the pattern what you have been
searching for
64 haydarekarrar December 23, 2011 at 4:29 am
Just a minor thing the last result line is removed in the example above, this should
be the result:
$ grep this greptest.txt
this line is the 1st lower case line in this le.
Two lines above this line is empty.
And this is the last line.
65 gotham January 22, 2012 at 4:32 am
awesome. thanks a lot.
66 edward January 31, 2012 at 2:20 am
For example my data is (le.ave) :
MRR 120101000000 UTC+07 AVE 60 STF 150 ASL
H 150 300 450 600 750 900
TF 0.0149 0.0515 0.1171
F00 -67.04
F01 -69.27
I use grep as:
grep -r MRR *.ave > time_0101.txt. In this case all le goes to time_0101.txt, I
have many les and I need each output goes to specic le name. Any idea ? And
how to use grep to take F00 and F01 ? If I use grep -r F *.ave, the rst line will be
taken also because of STF, Thanks for help..
67 shrikant February 14, 2012 at 10:23 am
Thank you
68 chinna February 19, 2012 at 8:48 am
here my question is in a directory i have 10 les.some les contains size in kbs and
23 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
some les contains size in mbs..i want display the les only which le size is
more than 1 mb
could anybudy help to nd answer for this question.
69 Anderson Venturini March 14, 2012 at 6:01 am
Great post! It was very useful! thanks a lot!
70 Anonymous April 9, 2012 at 3:22 pm
To answer Chinna If you have some les showing M, and some K, then your ls
command is probably running on a Linux box, and using the -h option.
The preferred method would be NOT to use the -h option, and let ls print le
sizes in bytes, which means that your script will be able to get the same
units+detail for all le sizes listed.
Then you can use awk to lter out les where $5 (5th eld) is over 1Meg, like
this:
/bin/ls -l | awk $5>=2^20
If you only want le names, not ls style list, then have awk give you that part of
output:
/bin/ls -l | awk $5>=2^20{print $NF}
Note: this does not like le names with spaces
notes for Other postings on this thread:
To: Francesco Talamona
(who was using grep to remove ##_comments from long cong les)
grep -v -E ^\#|^$ /etc/squid/squid.conf
You may want to remove comments that do NOT start on the rst char of a line,
and sed is more useful for that
sed s/#.*$//;/^[ ]*$/d /etc/squid/squid.conf
This will remove comments from each line, then discard the line if blank, or only
spaces remain.
=========
Also, where the -B and -A options are described for grep
This is for GNU/Linux, and not supported for most Non-Linux boxes.
#JETS
71 KHEE April 15, 2012 at 8:39 pm
Hi expert,
i am new to unix env
try to use certain command to help me generate 1 output le as below:
input le:
24 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
A
A/I 0.2 0.3 0.8
B
B/I 0.6 0.8 0.9
C
C 0.8 2.1 6.0
I just want to grep all A B C only, where want to skip the line which have the
number together. And my output le pattern is A B C Detc ( A, B,C all are a
word).
mean i want rst,second line, and skip 3rd & 4th lines, thanks for help.
72 krishna April 20, 2012 at 9:15 pm
How do you nd using regular expression, characters beginning with and ending
with any characters.
In AXyz122311Xyslasd22344ssaa Aklsssx@sdddf#4=sadsss kaaAASds
How do we get the characters slas out that begins with 11Xy and ends with
d223 in UNIX using regular expression?
echo $MSG | grep -o (?<=11Xy).+(?=d223)'
73 bala May 10, 2012 at 9:12 am
@krishna,
echo $MSG | grep -o 11Xy.*d223
74 guru May 22, 2012 at 11:52 am
i need answer for the following question
using grep, determine count of and print the list of words having uppercase letters
when the input sentence is given in command line
75 mitchell fox May 24, 2012 at 7:45 am
I know this is a simple grep or grep/sed question:
I have a log le with identied errors.The errors will lines containing the words
Patient ID: 12345678999 (quote marks are mine). i substituted the number
12345678999 for a real number. The real number will be any combination of 11
integers. So I would want to grep for Patient ID: 12345678999 but just end up with
the numbers themselves, not the rest of the lines.
Example of result I would like:
12345678999
23678900456
Thanks
76 Albert July 1, 2012 at 10:10 am
Hi,
25 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
Is there any way to nd strings longer than 50 charachter within les with grep?
Thanks,
77 Abhishek Verma July 17, 2012 at 1:15 am
Its really great .
78 SANKET July 25, 2012 at 7:46 am
Helo anyone tell me how nd word from directory contains number of les using
grep command and any other command
79 sam July 31, 2012 at 4:06 pm
Hey i am trying to just write rst simple script. Here what I am trying to do is pass
the word which I want to nd in array from command line. After that it should print
all entires which contain that word. Say I want to nd Jacob from command line but
its not returning any result.
#! usr/bin/perl
use Fcntl;
print content-type: text/html \n\n;
print Enter word : ;
$word = ;
@myNames = (Jacob, Michael, Joshua, Matthew, Alexander, Andrew);
@grepNames = grep(/$word/, @myNames);
foreach $Names(@grepNames)
{
print $Names;
print \n;
}
80 Ravneet September 4, 2012 at 7:10 am
Answer to Palash:
$grep -o pattern le name | wc -w
81 Victor Wood September 4, 2012 at 1:11 pm
Answer to SANKET:
if I understand your question correctly:
ls -1 | grep P.*Entity\.java count
will do a listing of your directory, send it to a grep search, and then count the
matches, many people would drop the -1 and abbreviate the count to:
ls | grep P.*Entity\.java -c
26 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
28 of 37
11/08/2014 12:58 AM
Hi,
I have query below:
Sample data le:
26/Jul/2013:11:57:24
26/Jul/2013:11:55:24
26/Jul/2013:10:55:24
26/Jul/2013:10:50:24
26/Jul/2013:10:53:24
26/Jul/2013:10:43:24
-0400
-0400
-0400
-0400
-0400
-0400
TAN101
TAN102
TAN101
TAN103
TAN103
TAN103
http://www.thegeekstu.com/2009/03/15-practica...
active
active
Idle
idle
active
active
Query is:I want the output as group by count.I mean number of records with
TAN101,number of records with TAN102,number of records with TAN103 .
TAN101 2
TAN102 1
TAN103 3
Please help me .
92 Raj September 20, 2013 at 11:58 am
How can I grep this ?
if [ "$EUID" = "0" ]
I want to grep this from /etc/prole and add somelines below it
93 shanmugam September 29, 2013 at 2:46 pm
Hi,
I am beginner in using Linux Grep command and I got search for words with 489
in a le as follows:
LRD489E
LRD489
LR489-SPAD
LR489(W)
U489-AB
I tried using grep command as follows:
egrep -o [A-Z]*489[A-Z]* FLG.id
the results I get
LRD489E
LRD489
how to get
LR489-SPAD
LR489(W)
Any help appreciated.
29 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
30 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
31 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
32 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
Submit
Previous post: Mergecap and Tshark: Merge Packet Dumps and Analyze Network Traic
Next post: 4 Ways to Identify Who is Logged-In on Your Linux System
RSS | Email | Twitter | Facebook | Google+
33 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
Search
COURSE
Linux Sysadmin CentOS 6 Course - Master the Tools, Congure it Right, and
be Lazy
EBOOKS
Linux 101 Hacks 2nd Edition eBook - Practical Examples to Build a
Strong Foundation in Linux
Bash 101 Hacks eBook - Take Control of Your Bash Command Line and Shell
Scripting
Sed and Awk 101 Hacks eBook - Enhance Your UNIX / Linux Life with Sed and
Awk
Vim 101 Hacks eBook - Practical Examples for Becoming Fast and Productive
in Vim Editor
Nagios Core 3 eBook - Monitor Everything, Be Proactive, and Sleep Well
The Geek Stuff
Me gusta
A 8381 personas les gusta The Geek Stuff.
POPULAR POSTS
34 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
12 Amazing and Essential Linux Books To Enrich Your Brain and Library
50 UNIX / Linux Sysadmin Tutorials
50 Most Frequently Used UNIX / Linux Commands (With Examples)
How To Be Productive and Get Things Done Using GTD
30 Things To Do When you are Bored and have a Computer
Linux Directory Structure (File System Structure) Explained with Examples
Linux Crontab: 15 Awesome Cron Job Examples
Get a Grip on the Grep! 15 Practical Grep Command Examples
Unix LS Command: 15 Practical Examples
15 Examples To Master Linux Command Line History
Top 10 Open Source Bug Tracking System
Vi and Vim Macro Tutorial: How To Record and Play
Mommy, I found it! -- 15 Practical Linux Find Command Examples
15 Awesome Gmail Tips and Tricks
15 Awesome Google Search Tips and Tricks
RAID 0, RAID 1, RAID 5, RAID 10 Explained with Diagrams
Can You Top This? 15 Practical Linux Top Command Examples
Top 5 Best System Monitoring Tools
Top 5 Best Linux OS Distributions
How To Monitor Remote Linux Host using Nagios 3.0
Awk Introduction Tutorial 7 Awk Print Examples
How to Backup Linux? 15 rsync Command Examples
The Ultimate Wget Download Guide With 15 Awesome Examples
Top 5 Best Linux Text Editors
Packet Analyzer: 15 TCPDUMP Command Examples
The Ultimate Bash Array Tutorial with 15 Examples
3 Steps to Perform SSH Login Without Password Using ssh-keygen &
ssh-copy-id
Unix Sed Tutorial: Advanced Sed Substitution Examples
UNIX / Linux: 10 Netstat Command Examples
The Ultimate Guide for Creating Strong Passwords
6 Steps to Secure Your Home Wireless Network
Turbocharge PuTTY with 12 Powerful Add-Ons
CATEGORIES
Linux Tutorials
Vim Editor
Sed Scripting
Awk Scripting
Bash Shell Scripting
Nagios Monitoring
OpenSSH
IPTables Firewall
Apache Web Server
MySQL Database
Perl Programming
Google Tutorials
35 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
Ubuntu Tutorials
PostgreSQL DB
Hello World Examples
C Programming
C++ Programming
DELL Server Tutorials
Oracle Database
VMware Tutorials
Ramesh Natarajan
Seguir
Support Us
Support this blog by purchasing one of my ebooks.
Bash 101 Hacks eBook
Sed and Awk 101 Hacks eBook
Vim 101 Hacks eBook
Nagios Core 3 eBook
Contact Us
Email Me : Use this Contact Form to get in touch me with your comments,
questions or suggestions about this site. You can also simply drop me a line to say
hello!.
Follow us on Google+
36 of 37
11/08/2014 12:58 AM
http://www.thegeekstu.com/2009/03/15-practica...
Follow us on Twitter
Become a fan on Facebook
Copyright 20082014 Ramesh Natarajan. All rights reserved | Terms of Service
37 of 37
11/08/2014 12:58 AM