Page Break in large file

Hi,

The shell script inserting the millions of rows into target flat file system and handling the line number for each line.

We need a page break line after every 10,000 lines.

is there any command to insert a page break line into target file.

What do you mean by a page break?... How is your script inserting lines?...

--ahamed

Try:

awk '!(NR%10000){$0=$0 RS}1' file > newfile

Or maybe:

awk '!(NR%10000){$0=$0 "\0C"}1' file > newfile

Thanks to All