The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-20-2008
scuderiaf1 scuderiaf1 is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 6
zaxxon


Yes that is one of the things needed. I now under stand the -v and -E args of grep. ty.

I still need to consolidate a couple of fields on each record in between the '------' to one record...... does that make sense?

I have a base awk statement that i have started. I piped your recommended grep command to it.



Code:
grep -vE "^------|^$" $FILENAME | awk '$4="04" { print $1","$2 }'


Last edited by scuderiaf1; 06-21-2008 at 10:35 AM..