|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
im having an array @check which contains text ..i want to open the array and i have to delete lines starting from a word called "check1" till "check2" for eg:- check1 Use descriptive titles when posting. For example, do not post questions with subjects like "Help Me!", "Urgent!!" or "Doubt". Post subjects like "Execution Problems with Cron" or "Help with Backup Shell Script". check2 You should do a Google Site Search or internal search before posting. Use [code] tags when you post any code so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags Code:
and by hand.) In the above eg the line till check2 have to be deleted ..ther are many regex in perl for replace and substitution but how to delete lines using perl |
| Sponsored Links | ||
|
|
![]() |
| Tags |
| perl |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PERL : Read an array and write to another array with intial string pattern checks | irudayaraj | Shell Programming and Scripting | 2 | 11-05-2011 07:11 AM |
| How to delete lines from a file in PERL? | vanitham | Shell Programming and Scripting | 3 | 10-08-2011 06:49 AM |
| [Perl] Split lines into array - variable line items - variable no of lines. | ejdv | Shell Programming and Scripting | 7 | 09-28-2011 11:07 AM |
| Array in Perl - Detect several file to be in one array | sayachop | Shell Programming and Scripting | 3 | 09-06-2011 10:31 AM |
| Perl delete an element from array | ahtat99 | Shell Programming and Scripting | 6 | 01-18-2007 08:25 AM |
|
|