in reply to Re^18: How do I use grep in a script
in thread How do I use grep in a script
If you don't need to keep the quotes just remove them before the match
while (<$fh>){ next unless /\S/; # skip blank lines s/"//g; # remove all "
or if they are optional try
if (/STATUS\s+Acct:"?(\d+)/){ $acct = $1; }
See perlretut
poj
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^20: How do I use grep in a script
by Flintlock (Novice) on Dec 29, 2017 at 19:57 UTC |