- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vi problem
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-12-2007 02:58 AM
11-12-2007 02:58 AM
vi problem
When opening a file in vi I am able to view close to ~3000 lines even though the file runs 6000 lines. How to resolve this.
Thanks,
Allan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 03:04 AM
11-12-2007 03:04 AM
Re: vi problem
1) Maximum line length - 4096 characters
2) Maximum number of lines - 234239
Are the lines extremely long?
You could also be hitting maxdsiz so chack that setting.
It would help to know what the product of
3000 * line length is.
You can always use split to divide the file into more manageable chucks. Man split for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 03:07 AM
11-12-2007 03:07 AM
Re: vi problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 04:08 AM
11-12-2007 04:08 AM
Re: vi problem
q1: How do you know you only read about 3000 lines? ^G ?
q2: Is there an error message to share?
What is the output for: wc
What is the output for: ls -l
What is the output for:
$ perl -ne '$l=length; if($l>$m) {$m=$l; $n=$.} }{print qq(Longest=$m at line $n\n)'
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 04:28 AM
11-12-2007 04:28 AM
Re: vi problem
A good technique is to run your file through od (or xd) and then use vi to examine the output.
e.g.
xd -v -Ad -tcxC myfile > mytextfile
vi mytextfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 05:08 AM
11-12-2007 05:08 AM
Re: vi problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 03:04 PM
11-12-2007 03:04 PM
Re: vi problem
What does vi say when it starts? Does it give the number of lines and chars? Does it match with Hein's wc suggestions?
>Clay: There are two hard-coded limits at play in vi:
>1) Maximum line length - 4096 characters
If so, you need to use vim.
>2) Maximum number of lines - 234239
I have no problems with 303K lines. And even though it says "silently enforced", I'm not sure where I'm losing data? A simple insertion at the start lost nothing.
>Clay: A good technique is to run your file through od (or xd) and then use vi to examine the output.
Using vis(1) and inv(1) would work better if the file is mostly ascii.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 11:58 PM
11-12-2007 11:58 PM
Re: vi problem
The file is too big to edit with vi? Make a copy of it smaller but cutting it into pieces. I would do the same thing with a big cookie that is too big to eat.