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-2001 08:30 AM
тАО06-28-2001 08:30 AM
I am on a HP9000 K220 using HPUX 10.20. Any help would be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2001 08:33 AM
тАО06-28-2001 08:33 AM
Re: vi help
:587,819w! /work/newfile
then go back and either dd the lines, or 232dd, neither of which worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2001 08:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2001 08:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2001 04:28 AM
тАО07-02-2001 04:28 AM
Re: vi help
dd is a valid command, but maybe you were at the colon (:dd)? Vi is VERY case sensitive. For example: the J key merges lines together, while the j key jumps down one line.
To see what line you are on, hit control-G, from within the command mode. (ie not insert mode, and not with that colon at the bottom of the screen).
Here's yet another way to do this.
From unix, "vi myfile newfile"
You the h,j,k,l movement keys to go to the starting line.
"a232yy <--drop 232 lines into BUFFER a.
:n <--go to next file
"ap <--pop the 232 lines into the next file.
:w <--save newfile
:rew <--rewind back to your first file
232dd <--delete 232 lines
:wq <--get out
Buffer a? What's that you say? Oh, you have a least 26 of these little buffers.
You can run vi multiple files too.
:n next file
:rew rewind to first file
One last thing....
u - is the undo last command key.
. - is the repeat last command key.
23. - means repeat last command 23 times.
:e! - restores the file to the last time you saved it.
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2001 04:47 AM
тАО07-02-2001 04:47 AM
Re: vi help
Just the following line :
:587,819w newFile.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2001 04:55 AM
тАО07-02-2001 04:55 AM
Re: vi help
how about:
vi yourfile
:587,819w myfile
:587,819d
:wq
regards,
Thierry