script using awk

August 18, 2010 at 01:25:18
Specs: unix
my file name is say "file" and i have to remove the first line from this file and also replace the 3rd column with hai...i used awk 'NR>1' file..its working and again i used
nawk -F"," '$2="hai"' there any way to execute these two in single line

---------- Post updated 08-18-10 at 02:53 AM ---------- Previous update was 08-17-10 at 08:32 AM ----------

my file has 5 cloumns say
My requirement is ,need to create a flat file from this file.the input file is csv format.
If the first line is A,then print col2,col3,col4 and each columns will have specified space ie:first print A then give 2 spaces,ie:A has 3 space,then 2nd col has 5 space,3rd col 7 space and 4th col10 space.check each row in the file.If the firat col is B,then print col2,col3 with col2 has 3 space and col3 has 15 space like that..please help

See More: script using awk

Report •

August 18, 2010 at 04:08:42

You would do better to post this in the Programming forum - this forum is the Office Software forum and is for issues about programs such as Excel and Word.

If you re-post, use a different subject line.


Report •
Related Solutions

Ask Question