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

Limitation of record length in nawk

Status
Not open for further replies.

tobbe

Programmer
Jan 11, 2001
4
SE
Hi!

Does anyone know how long the input record can be in nawk? I believe it is 3000 characters i awk, but is it the same in nawk?

Thanx in advance

/Tobbe
 

Hi, tobbe!

I haven't answer, but I have some information about your question.

As I know, only limitation of nawk is work with large files. A large file is a regular file whose size is greater than or equal to 2 Gbyte. Of corse, nawk can't work with binary files.

Some limits of classic awk (maybe you need this):
100 fields
3000 chars per input record
3000 chars per output record
1024 chars per field
3000 chars per printf string
400 chars max literal string
15 open files

But you can make file with row longer than 3000 characters with editor and test nawk yourself. With vi is this job easy: take file greater then 10 Kbyte, enter 3005J to join 3005 rows of file, enter :w example.txt to save contens in file example.txt, and enter :q to quit vi.

Vers from Bible for you:
"That if thou shalt confess with thy mouth the Lord Jesus,
and shalt believe in thine heart that God hath raised Him from the dead,
thou shalt be saved.

KP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top