Results 1 to 3 of 3
Hi Guys,
How do you use shell script and awk to
1. Search for the users input (an exact match) in the 1st column of the csv file
2. Check ...
- 05-04-2009 #1Just Joined!
- Join Date
- Oct 2008
- Location
- Edinburgh, Scotland
- Posts
- 18
Shell Script & AWK syntax
Hi Guys,
How do you use shell script and awk to
1. Search for the users input (an exact match) in the 1st column of the csv file
2. Check the 2nd column to see if it says either 'Home' or 'Business'
3. Echo the appropriate headings (based on what was found in the 2nd column) with the data found in all other columns
I'm guessing I would need to use an 'if' statement combined with awk ...
can anyone help?
- 05-07-2009 #2
This will help with the awk
AWK Programming
and this for shell
How to write a shell script
- 05-07-2009 #3Just Joined!
- Join Date
- Oct 2008
- Location
- Edinburgh, Scotland
- Posts
- 18
Thanks very much TuxKnight, I'll have a look at those.


Reply With Quote