Hi everyone, I need to search a phrase in multi files and display the results on the screen.
grep "EMS" SCALE_*
| sed -e "s/SCALE_//" -e
"s/_main_.*log:/ /"
Since I am not get familiar with sed, I change it to Perl for convenient use.
grep "EMS" SCALE_*
| perl -e "s/SCALE_//" -e
"s/_main_.*log:/ /"
or
grep "EMS" SCALE_*
| perl -e "s/SCALE_//; s/_main_.*log:/ /"
However , the last one is compiled but returns nothing on the command line. Any suggestion for modifying my code. Great thanks!