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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-16-2008
navsharan navsharan is offline
Registered User
 

Join Date: Jan 2008
Posts: 2
Need help to parse the file

# Start
"ABC" SFFd 0 4 [abc]
Time SFFT 4 8 {Sec} [abc]
User SFFTimeVal 12 8 {Sec} [asd]

# Start
"CP" SFFT (Time") {Sec} [fgh]
Time" SFFT ("Utn") {Sec} [jhk]

I have bundle of file in above format. please help me to create a shell script that will take input of file name and output will be like this.

ABC,SFFd
Time,SFFT,sec
User,SFFTimeVal,sec
CP,SFFT,sec
Time,SFFT,sec

I don't want to add those row which is commented with # sign


Thanks in Advance.
Reply With Quote
Remove advertisements
!!
Forum Sponsor