i have about 30 scripts for example:
test, test1,test2, test3, test4,.....
inside every scripte is code like this:
echo "input check OK"
how to rename this line in multiple scripts in this:
echo "input error!"
i have about 30 scripts for example:
test, test1,test2, test3, test4,.....
inside every scripte is code like this:
echo "input check OK"
how to rename this line in multiple scripts in this:
echo "input error!"
try:
perl -i -ne 's/check OK/error!/g;print;' test*
Below should do:
sed 's|check OK|error!|g'
or
awk '{gsub("check OK","error!");print}'