W
walter
Hi,
I just started learning perl.
Now I know
perl -p -e 's/exp1/exp2/g' file
is equivalent to
sed -e 's/exp1/exp2/g' file
But I can't realize what's the perl equivalent to
sed -e '/exp1/,/exp2/d' file
I tried to mimic it using
perl -p -e '/exp1/,/exp2/d'
but, of course, it didn't work...
Yes...I know it's a dumb question....Sorry!
Thanks for your time and patience !
I just started learning perl.
Now I know
perl -p -e 's/exp1/exp2/g' file
is equivalent to
sed -e 's/exp1/exp2/g' file
But I can't realize what's the perl equivalent to
sed -e '/exp1/,/exp2/d' file
I tried to mimic it using
perl -p -e '/exp1/,/exp2/d'
but, of course, it didn't work...
Yes...I know it's a dumb question....Sorry!
Thanks for your time and patience !