![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | 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 !! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Which editor to use? | Nafanja | UNIX for Dummies Questions & Answers | 5 | 11-29-2007 08:58 AM |
| set EDITOR=vi -> default editor not setting for cron tab | aarora_98 | Shell Programming and Scripting | 2 | 12-12-2005 07:53 AM |
| Vi editor | jazz | High Level Programming | 1 | 11-17-2005 04:37 AM |
| vi editor | eloquent99 | UNIX for Dummies Questions & Answers | 1 | 01-14-2003 01:49 AM |
| Using the vi editor | pbsys | UNIX for Dummies Questions & Answers | 2 | 11-05-2001 11:27 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this 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!!!! |
| Forum Sponsor | ||
|
|
|
|||
|
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. |
|||
| Google UNIX.COM |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|