Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Specific Parameters 1

Status
Not open for further replies.

dvknn

IS-IT--Management
Mar 11, 2003
94
US
Hi..I have a file which looks like this:

2003.11.13,(h p computer) - FILTER: 1
2003.11.13,(marketing tool) - FILTER: 1
2003.11.13,(market tool) - FILTER: 1
2003.11.13,(market item) - FILTER: 1
2003.11.13,(avionics) - FILTER: 4
2003.11.13,(Proofs (printing)) - FILTER: 1
2003.11.13,(heart medication) - FILTER: 2
2003.11.13,(FOLIOS) - FILTER: 1
2003.11.13,(molded plastic) - FILTER: 1
2003.11.13,(PORTFOLIOS) - FILTER: 1
2003.11.13,(paint equipment) - FILTER: 1
2003.11.13,(portfolios) - FILTER: 1

In my output, I should see the lines without the starting "(" and ending ")". So, my file should look like :

2003.11.13,h p computer - FILTER: 1
2003.11.13,marketing tool - FILTER: 1
2003.11.13,market tool - FILTER: 1
2003.11.13,market item - FILTER: 1
2003.11.13,avionics - FILTER: 4
2003.11.13,Proofs (printing) - FILTER: 1
2003.11.13,heart medication - FILTER: 2
2003.11.13,FOLIOS - FILTER: 1
2003.11.13,molded plastic - FILTER: 1
2003.11.13,PORTFOLIOS - FILTER: 1
2003.11.13,paint equipment - FILTER: 1
2003.11.13,portfolios - FILTER: 1

I have tried an awk..but, my awk results show me without "("..so, for
2003.11.13,Proofs (printing) - FILTER: 1, I see my output as 2003.11.13,Proofs printing)) - FILTER: 1

Can anybody help me please?
Thanks
 
Thanks people.

Problem is solutioned now.

Cheers . T
 
<I take it NF means something like Near Field? -3 from 3rd last.>

NF means Number of Fields

HTH


Dickie Bird (:)-)))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top