![]() |
|
|
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 |
| Multiple Files deletion in perl | pulkit | Shell Programming and Scripting | 1 | 02-12-2008 05:55 AM |
| perl script first line | new2ss | Shell Programming and Scripting | 2 | 05-24-2007 05:17 AM |
| add to first line of file using perl | kingdbag | Shell Programming and Scripting | 5 | 11-06-2006 05:00 PM |
| One line perl command | rsg00usa | Shell Programming and Scripting | 2 | 12-14-2005 05:45 PM |
| perl on the command line.. | moxxx68 | Shell Programming and Scripting | 2 | 03-30-2005 02:31 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Line deletion help using perl -ne
Hi all,
I know the one liner to delete all the lines in a file which matches a pattern i.e perl -i.old -ne 'print unless /pattern/' file Now i need the perl onliner to delete all the lines which doesnt match the pattern. Also what is the difference between perl -i and perl -i.old. Does perl -i.old archive the existing file? Your help in this will be appreciated. Thanks in advance. Lijju |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|