![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vi editor | jazz | High Level Programming | 2 | 05-08-2009 08:46 AM |
| set EDITOR=vi -> default editor not setting for cron tab | aarora_98 | Shell Programming and Scripting | 6 | 09-13-2008 02:01 AM |
| Which editor to use? | Nafanja | UNIX for Dummies Questions & Answers | 5 | 11-29-2007 12:58 PM |
| vi editor | eloquent99 | UNIX for Dummies Questions & Answers | 1 | 01-14-2003 05:49 AM |
| Using the vi editor | pbsys | UNIX for Dummies Questions & Answers | 2 | 11-05-2001 03:27 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
vi editor
Hello!
Can anybody give me a hint. Here is a task. T Tere is a text file. It contains names. Some names have second and third names. EX: Gordon Freeman Contains second name EX2: William Gilbert Ross Contains second and third names How can I delete lines that contain second and third names using one command? Thank you in advance!!!! |
|
||||
|
Well, the thing is, those lines with second and third names have to be deleted from the file at all. The problem here is that the task is to delete all such lines using just one command. If it were not this strict I could use dd command in vi editor to do it.
By the way, the file must be edited in vi editor. So, apparently, there should some command to perform this task. That's why I asked. Thank you, blowtorch, for the message. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|