vi editor


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
vi editor

Hi,
how can I add at the begining and at the end of all of the lines of my text file in VI editor ? Many thanks before.
for exemple if in my file i have
line 1
line 2
I want to have :
start line 1 end
start line 2 end
# 4  
quite the same:

: 1,$ s/.*/DROP TABLESPACE & INCLUDING CONTENTS/

Replace "DROP TABLESPACE" with any other text you may want to put at the beginning of the line and "INCLUDING CONTENTS" with any other text you may want to put at the end.

bakunin
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Epic Editor was not able to obtain a license for your use. Feature Epic Editor :Licen
durgaprasadr13
Epic Editor was not able to obtain a license for your use. Feature Epic Editor :License server is down... Solaris
1
Solaris
set EDITOR=vi -> default editor not setting for cron tab
aarora_98
Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set...... Shell Programming and Scripting
6
Shell Programming and Scripting
Pasting text in VI editor from a different editor
harishmitty
Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'.... UNIX for Dummies Questions & Answers
10
UNIX for Dummies Questions & Answers
VI Editor
doyindayo
I need to delete a line of statement with vi editior in linux, i am using rm but won't work.... UNIX and Linux Applications
3
UNIX and Linux Applications
vi editor
diptiman
suppose i have a lines as follows -rw-r----- 1 ora92 orainst 104846848 Jan 15 2005 0001_0000003971.arc -rw-r----- 1 ora92 orainst 104851456 Jan 15 2005 0001_0000003972.arc -rw-r----- 1 ora92 orainst 104852992 Jan 15 2005 0001_0000003973.arc -rw-r----- 1 ora92 orainst...... Solaris
15
Solaris