ajd335 has asked for the wisdom of the Perl Monks concerning the following question:
I have used , the below perl script to do so, But gives me error = > Unmatched '.(.*)$/',$lines,$matches) 10.(.*)$/',$lines,$matches) (.*)$/ +',$lines,$matches)
Please , help me out. Thanks,perl -pi -e 's#\Q(.*)\$/',\$lines,\$matches))10.(.*)\$/',\$lines,\$mat +ches))(.*)\$/',\$lines,\$matches))# #gi' result.txt > result1.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Delete a line from the file
by NetWallah (Canon) on Jul 16, 2008 at 22:04 UTC | |
by ajd335 (Novice) on Jul 16, 2008 at 22:21 UTC | |
by ikegami (Patriarch) on Jul 16, 2008 at 22:26 UTC | |
by NetWallah (Canon) on Jul 16, 2008 at 22:35 UTC | |
by ajd335 (Novice) on Jul 16, 2008 at 22:52 UTC | |
by NetWallah (Canon) on Jul 16, 2008 at 23:07 UTC | |
| |
|
Re: Delete a line from the file
by cdarke (Prior) on Jul 17, 2008 at 08:23 UTC |