- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- option :X in editor 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
05-06-2003 10:43 AM
05-06-2003 10:43 AM
:X
enter key
I lost the data, with recovery or return a my shell script original
only see caharacter type:
2\320ex) \301t^^$1r!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 11:03 AM
05-06-2003 11:03 AM
Re: option :X in editor VI
vi file -x
and it will prompt you for the key. See the man page on vi for more. If you cannot recall the encryption key, your file is most likely lost.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 11:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2003 02:24 AM
05-07-2003 02:24 AM
Re: option :X in editor VI
I think you mean "-x" instead of "-C". At least that is what I always use, and, as far as I know, there is no option "-C".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2003 02:42 AM
05-07-2003 02:42 AM
Re: option :X in editor VI
Check the TERM value.
I have also attached Vi editor option, it could be helpfull for you.
5) VI editor options
Three Types of Modes,
Command Mode,
Last Line Mode
Insert or Input Mode,
Cursor Movement,
l ??? Move one Character Right
h- Move one Character Left
j- down
k- up
G- Go to Last Line of the file
NG- Go to line number n in the file
$- End of the Current line
^ - Beginning of the Current line
H- First line of the Screen
M- Middle line of the Screen
L- Last line of Screen
Ctrl-G find out which line your in the file
$G End of the last line of the file
INSERT Command
i ??? Insert Current Cursor location
I ??? Insert at the beginning of the Current line
,a ??? Insert text at the next character position relative to the current cursor location
A ??? End of the Current line
o- Blank line below the current line
O- Blank line above the current line
Deleting command
x delete character
nx n character starting from current cursor location
X Delete previous character from the current cursor
,nX n previous character from the current location
dd delete current line
db delete previous word
dw current cursor location forward word
dG delete end of the file including current line
Replacement Command
r- Replace Current Character remain in command mode
s- Replace current Character and go to insert mode
R- Replace Multiple Character until the Esc key is pressed
cw- Change to the beginning of the next word
cc- change the entire line
cG change ot the end of the line
Undo and Redo
,u Undo the last changes
U undo the Changes made to the current line
. Redo something changed by undo
Scrolling text
Ctrl ??? b Scroll one screen back
Ctrl ??? f Scroll one screen forward
Ctrl ??? u Scroll half screen back
Ctrl ??? d half screen forward
Search and Replace
/
?
/ Repeat the search
? Repeat the search backword
n Repeat search in the same direction
N Repeat search in the opposite direction
:s/old/new search and replace
:m,ns/old/new from m to n line search and replace
:s/old/new/g search entire file and replace
/
/^text search from beginning of a line
/text$ search end of the line
Yanked or copied
Yy ??? copy current line
Nyy- copy n lines starting form current line position
p paste the txt after the current cursor
P paste the txt before the current cursor
:ma move current line and paste after the line number ???a???
:a.bmc Move line from a to b and paste after line number c
:a,btc copy the line from a to b and paste after the line number c
:r
:w
:set number
:set all
:set readonly
:set wrapmargin =n
Regards,
Bala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2003 08:30 AM
05-07-2003 08:30 AM
Re: option :X in editor VI
vi -C filename
the problem is that remember the key
when exit the vi with x! it was activated caplocks
write the script again.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2003 11:56 PM
05-07-2003 11:56 PM
Re: option :X in editor VI
"-C" is apparently a 'new', HP-UX 11.0 and higher, vi(1) option which is similar to (but not the same as) "-x". See the vi(1) manual page for details.