1833059 Members
2815 Online
110049 Solutions
New Discussion

Re: ed

 
SOLVED
Go to solution
Carme Torca
Super Advisor

ed

Hi,

I would like to know if ed has a limit of lines. I am genereting one file and its stops at 768622 lines..... and I would like to generate one file of 857667 lines.
Is it possible??

Thanks!!
Carmen.
Users are not too bad ;-)
4 REPLIES 4
Gavin Clarke
Trusted Contributor
Solution

Re: ed

From the man page for ed:
The following size limitations apply: 256 characters per global command list, 64 characters per file name, and 32 MB characters in the buffer. The limit on the number of lines depends on the amount of user memory: each line takes 1 word.

So I think it's ulimit -a which will tell you the amount of user memory, then some calculations which I'm afraid haven't got handy.

Can you use split or vi?
Steve Steel
Honored Contributor

Re: ed

Hi


In vi I can hit

57 topaz bootpd[6006]: no client found
1015610 Oct 20 11:15:16 topaz bootpd[6006]: no client found
1015611 Oct 20 11:15:48 topaz bootpd[6006]: no client found
1015612 Oct 20 11:30:30 topaz ftpd[11600]: User root timed out after 900 second
s at Wed Oct 20 11:30:30 2004
1015613 Oct 20 11:30:30 topaz ftpd[11600]: FTP session closed
1015614 Oct 20 11:31:18 topaz bootpd[6006]: no client found
1015615 Oct 20 11:31:49 topaz above message repeats 69 times
1015616 Oct 20 11:31:50 topaz bootpd[6006]: no client found


Thats over one million

Maybe you do not have largefiles there and are hitting 2GB filesize


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Sยภเl Kย๓คг
Respected Contributor

Re: ed

dear carme
What about vi or ex
regards
SK
Your imagination is the preview of your life's coming attractions
Hein van den Heuvel
Honored Contributor

Re: ed



What problem are you really trying to solve?

> would like to generate one file of 857667 lines.

Generating files is straigtforward with AWK and PERL and SHell scripts. All of those have NO lines nor bytes limitation

perl -e 'print "line $i\n" while (++$i < 857668)'

fwiw,
Hein.