GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: VI and EX command
Operating System - HP-UX
1847728
Members
6136
Online
110265
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
10-30-2003 06:34 AM
10-30-2003 06:34 AM
ok this is driving me nuts, i know i've done this before
lets say i have a file and via the vi editor i want to, with one command delete the 24th character in each line
i keep thinking it should be
:1,$ g// 24lx
or something to that effect ..
what am i forgetting or doing wrong?
thanks
Jim
lets say i have a file and via the vi editor i want to, with one command delete the 24th character in each line
i keep thinking it should be
:1,$ g// 24lx
or something to that effect ..
what am i forgetting or doing wrong?
thanks
Jim
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 07:44 AM
10-30-2003 07:44 AM
Solution
Well 24l is a motion command and can't be executed by "g".
You could do the following-
:set magic
:1,$s/^\(.\{23,23\}\)\(.\)/\1/
The "cut" command could also be used.
Usually when somewhat complicated edits need to be done, I prefer "perl" or sometimes "awk".
HTH
-- Rod Hills
You could do the following-
:set magic
:1,$s/^\(.\{23,23\}\)\(.\)/\1/
The "cut" command could also be used.
Usually when somewhat complicated edits need to be done, I prefer "perl" or sometimes "awk".
HTH
-- Rod Hills
There be dragons...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 08:13 AM
10-30-2003 08:13 AM
Re: VI and EX command
yikes that looks familiar but worse .. i was making it harder then needed, cut -c works just as well thanks
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP