- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: editing large file with vi
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
Forums
Discussions
Discussions
Discussions
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
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
11-30-2000 01:31 AM
11-30-2000 01:31 AM
i gget the error "no space left on device".
How can i temporary change the "tmp-space" for vi ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2000 01:51 AM
11-30-2000 01:51 AM
Re: editing large file with vi
in your $HOME/.exrc file, put a line like the following:
directory=/wherever/you/want
This will set the temp directory to that location instead of the default /var/tmp
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2000 01:55 AM
11-30-2000 01:55 AM
Re: editing large file with vi
from man vi : Maximum File Size
The maximum file length of 234,239 lines is silently enforced.
Do a do a "wc -l" on the file if this exceeds
234,239 use the split(1) command to split these large files into smaller files, edit the smaller files and then use cat(1) to concatenate these files back may work ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2000 01:59 AM
11-30-2000 01:59 AM
Re: editing large file with vi
or you can put a entry in your .exrc file
directory=/home/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2000 02:05 AM
11-30-2000 02:05 AM
Re: editing large file with vi
As the error message was "no space left on device", the problem doesn't seem to come from the file lenght.
Otherwise, you're right as 'split' can be used to break the file into smaller pieces.
The vi (visual) program is a display-oriented text editor that is based on the underlying ex line editor (see ex(1)), that's where the directory=
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2000 03:37 AM
11-30-2000 03:37 AM
Re: editing large file with vi
http://www.vim.org
whitout some of the limitations in HP-UX vi, and with lots of more useful features.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2000 11:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2000 10:41 PM
11-30-2000 10:41 PM
Re: editing large file with vi
Have a look at this post from Stefan Farrelly:
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x94f05f260cafd4118fef0090279cd0f9!0,00.html
Dan