Re: awk lines between > separate text files
- From: pk <pk@xxxxxxxxxx>
- Date: Tue, 12 Jan 2010 22:28:10 +0000
thdyoung@xxxxxxxxxxxxxx wrote:
hello Pk
switched to gawk and tryed your awk again
very very nice!
gawk '/^CCCC$/{close("newfile"n);n++}{print > "newfile"n}'
login2edit.php
thanks for the help, and the pleasure of seeing this one line of code
replacing so much tedious cut n paste
Uhm, check your output files, because with the version above they contain
"CCCC". If that's not what you want, use this:
gawk '/^CCCC$/{close("newfile"n);n++;next}{print > "newfile"n}'
login2edit.php
.
- References:
- awk lines between > separate text files
- From: thdyoung@xxxxxxxxxxxxxx
- Re: awk lines between > separate text files
- From: pk
- Re: awk lines between > separate text files
- From: pk
- Re: awk lines between > separate text files
- From: pk
- Re: awk lines between > separate text files
- From: thdyoung@xxxxxxxxxxxxxx
- Re: awk lines between > separate text files
- From: Ed Morton
- Re: awk lines between > separate text files
- From: thdyoung@xxxxxxxxxxxxxx
- Re: awk lines between > separate text files
- From: pk
- Re: awk lines between > separate text files
- From: thdyoung@xxxxxxxxxxxxxx
- awk lines between > separate text files
- Prev by Date: Re: absg
- Next by Date: Re: absg
- Previous by thread: Re: awk lines between > separate text files
- Next by thread: Re: awk lines between > separate text files
- Index(es):
Relevant Pages
|