For Programmers: Free Programming Magazines  


Home > Archive > AWK > September 2004 > How to split a line after ";"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to split a line after ";"
WLSERVER

2004-09-16, 4:49 am

I Have a test file with ; as separator for all the lines.

Now I want all the lines in the txt file to be split wherever ; comes?
I am a newbi can any body help?

Regards,
WLSERVEr
William Park

2004-09-16, 4:49 am

WLSERVER <wlserver@yahoo.com> wrote:
> I Have a test file with ; as separator for all the lines.
>
> Now I want all the lines in the txt file to be split wherever ; comes?
> I am a newbi can any body help?


Split into what? separate line or separate file? In either case, read
manpage for FS/OFS and RS/ORS.

--
William Park <opengeometry@yahoo.ca>
Open Geometry Consulting, Toronto, Canada
William Park

2004-09-18, 3:55 am

WLSERVER <wlserver@yahoo.com> wrote:
> I Have a test file with ; as separator for all the lines.
>
> Now I want all the lines in the txt file to be split wherever ; comes?
> I am a newbi can any body help?


Split into what? separate line or separate file? In either case, read
manpage for FS/OFS and RS/ORS.

--
William Park <opengeometry@yahoo.ca>
Open Geometry Consulting, Toronto, Canada
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com