Re: cat - > file.txt << EOF



In article <ek7443$6sb$1@xxxxxxxxxxxx>,
Antonio Maschio <tbin@xxxxxxxxx> wrote:
cat - > file.txt << EOF

writes all the following into file.txt until the string EOF is input.
But what if I wanted the same to be accomplished after two following
void lines (i.e. after two Returns)?

#!gawk
BEGIN { RS="" }
{ print;exit }
.



Relevant Pages

  • Re: cat - > file.txt << EOF
    ... Antonio Maschio wrote: ... writes all the following into file.txt until the string EOF is input. ... void lines? ... You mean to skip the first two lines from stdin and put the rest ...
    (comp.unix.shell)
  • Re: cat - > file.txt << EOF
    ... writes all the following into file.txt until the string EOF is input. ... void lines? ... You mean to skip the first two lines from stdin and put the rest ... Maybe he means stop writing and quit when two blank lines are found: ...
    (comp.unix.shell)