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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract data from fields

Status
Not open for further replies.

tonivm

Technical User
Mar 2, 2006
64
ES
hi everybody:
i'm newbie in awk programming language, and i've got a different files where has two fields, but in the second field has this format:

08:46:00",273510,178.1,52.68,606.6,99.4,84.9,25.57,-1.179,100.3,172.6,216.4,0.989,0.143,2.262,1.412

and my intention is separate this field by another fields for each ",".
could anybody tell me any solution.
thanks in advance.
 
Hi

No idea what is the point. [tt]awk[/tt] automatically splits the record on fields, according to the [tt]FS[/tt] ( field separator ) internal variable's value. You can set it to feet your needs. ( Even with the -F command line option. )

If that is not enough, please write more about your goal.

Feherke.
 
Have a look at the split function in the awk man page.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top