![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delete first line from file and more.... | dfb500 | Shell Programming and Scripting | 6 | 07-02-2009 10:04 AM |
| Delete a line from a file | rohini | UNIX for Dummies Questions & Answers | 8 | 01-07-2009 06:34 AM |
| How to delete line from a file | ramezernest | UNIX for Dummies Questions & Answers | 0 | 11-01-2007 11:56 AM |
| delete line in file with sed | forever_49ers | Shell Programming and Scripting | 8 | 09-12-2007 08:39 AM |
| Delete line(s) from file | elchalateco | UNIX for Dummies Questions & Answers | 4 | 10-11-2002 01:25 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to delete line in the same file in unix ?
How to delete line in the same file in unix ?
Both commands, /bin/echo "g/$patern/d\nwq!" | ex -s $file (echo "g/$patern/d"; echo 'wq') | ex -s $filename works fine if there are more than 1 line in file but if there is only one line then above delete command dosent works. Please help me !! |
| Bookmarks |
| Tags |
| sed delete line, unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|