Name: indika_cha Date: March 21, 2005 at 23:03:37 Pacific Subject: unix vi editor OS: windows xp CPU/Ram: cyrex pro 96Mb
Comment:
I have a very large text file. I tried to edit it using vi editor - unix when i give " vi abc.txt " it displays the file but at the last line it says "Line too long" And i found that it cannot display the whole file. Only the upper part it display.
No, different platform. I could not say for sure, which is why I said that sed can PROBABLY handle the long lines.
You stated that, for non-Linux, if a line is too long for vi, it will probably be too long for sed.
But I do not find that correct for at least one non-Linux platform. On HP-UX, awk can handle lines up to about 2400 characters, and vi up to about 3000 characters I think, while sed can handle lines much longer than that.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE