1834644 Members
3226 Online
110069 Solutions
New Discussion

Edit Files

 
SOLVED
Go to solution
Ahmed M. AlShafiy
Regular Advisor

Edit Files

how can i edit or make changes to exist file like XClone.env
what is the command for that?
9 REPLIES 9
Devender Khatana
Honored Contributor
Solution

Re: Edit Files

Hi,

#vi Xclone.env

#ed Xclone.env


HTH,
Devender
Impossible itself mentions "I m possible"
Arunvijai_4
Honored Contributor

Re: Edit Files

Hi,

Do you want to edit a file in HP-UX env ? You can use # vi to do that. Or you want something else ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Sivakumar TS
Honored Contributor

Re: Edit Files


Dear,
You can either use #vi or #ed to edit text files in HPUX.

With Regards,

Siva.
Nothing is Impossible !
Ahmed M. AlShafiy
Regular Advisor

Re: Edit Files

i have do this
#vi XClone.env

after that the file have been open i need to change one line and save it how can i do it?
Arturo Galbiati
Esteemed Contributor

Re: Edit Files

Hi,
if the file is not abinary file in Unix you can use VI, in Windows you can use WinVi.
Let me know if you want it and I can send you.
HTH,
Art
Arunvijai_4
Honored Contributor

Re: Edit Files

# vi XClone.env
press i to edit mode,
# edit
# :wq to save and quit

http://forums1.itrc.hp.com/service/forums/helptips.do?#28

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Devender Khatana
Honored Contributor

Re: Edit Files

Hi,

Just move to the desired line using j if you wish to add something in the same line move the cursor to thatposition using l and then press i to start insertion. At the end of insertion press Esc key and then using :wq you can quit.

Man vi for details.

HTH,
Devender
Impossible itself mentions "I m possible"
Devender Khatana
Honored Contributor

Re: Edit Files

Hi,

If you have some x-session running. X editor will be an easy option to edit the file.

HTH,
Devender
Impossible itself mentions "I m possible"
Ahmed M. AlShafiy
Regular Advisor

Re: Edit Files

thankx all of you