- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- manipulating vi editor
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2002 05:19 PM
тАО06-28-2002 05:19 PM
can someone notify me that too big files are editted in vi command..
ie, opening 2GB file first
and insert, delete, ... and so on..
How can I do that? or
the way to go what i want to edit first not open the entire file but open part of file and manipulate
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2002 05:34 PM
тАО06-28-2002 05:34 PM
Solutionsplit -l 50000 file will split file into fileaa, file ab, fileac, ... each 50,000 lines long. You can edit these and these recombine them using cat file* > newfile.
Man split for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2002 05:35 PM
тАО06-28-2002 05:35 PM
Re: manipulating vi editor
If this is a long file, you can use split to split the file into parts, edit them and then join them together.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2002 06:09 PM
тАО06-28-2002 06:09 PM
Re: manipulating vi editor
Here is a thread regarding editing large files that vi cannot handle
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5c1deea29889d611abdb0090277a778c,00.html
Regards
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2002 06:48 PM
тАО06-28-2002 06:48 PM
Re: manipulating vi editor
You have to use sed or awk depensding on what you need to change. An interactive editor w]won't work.
Bill Hassell, sysadmin