Name: AnjiReddy_Puli Date: July 17, 2006 at 05:47:46 Pacific Subject: How to edit large files? OS: SunOS 5.8 CPU/Ram: PIV Model/Manufacturer: Dell
Comment:
I want to edit the first line in a large file. Using VI editor I amn't able to do, so that I thought to do using head and tail functions and then done successfully. Is there any way to achieve this in single command? Likewise anyone can give a single command to go nth line a file! I know we can achive this using "head -n filename | tail -1", but I want to know any other option to get n'th line in a file.
Vi will be the best to do so if your file is not bigger than 2 gigs. If yes, then do the following
1. open VI without a file name. 2. In the command mode, type :set directory=<any directory with enough free space> 3. now open the file using :e <file name>
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