VI Editor


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
VI Editor

I need to delete a line of statement with vi editior in linux, i am using rm but won't work.
# 2  
This is a joke, right? Smilie

Ignoring how you find the line you want to delete, use dd instead of rm. What rm will do is replace (r) the letter under the cursor with the letter m.
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
Which editor to use?
Nafanja
Good day, everyone! I've started using/learning UNIX recently and the only problem i get, is that I can hardly edit a file from within the script (searching/replacing, extracting, ect.) I've tried vi, ex, ed all of them did only half of job, which means they opened out a file but did not perform...... UNIX for Dummies Questions & Answers
5
UNIX for Dummies Questions & Answers
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