Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
How to edit large files?
Name: AnjiReddy_Puli Date: July 17, 2006 at 05:47:46 Pacific OS: SunOS 5.8 CPU/Ram: PIV Product: 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.
Name: aakashunix Date: July 18, 2006 at 04:10:53 Pacific
Reply:
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>
HOpe this works for you.
0
Response Number 2
Name: FishMonger Date: July 18, 2006 at 23:50:21 Pacific
Reply:
Using vi, you can open the file and position the cursor at a given line number e.g. line 5 like this:
Summary: Hello, I am new to UNIX. Now I am learning it. I dont know how to read txt files in UNIX system and edit. Please post the commands for read and edit with example. Thanks Jayaramgussy...
Summary: I have bootdisk for SCO rel.5.4, I need information : " How to edit bootdisk system to change the configuration setup ? Please sent me to my e-mail ...