I have several files where a string similar to this appears:
/home/workload/bin/ProcDly/scrpts/T54.sh > $LOG
I need to change it to something like this:
$VARIABLE > $LOG
However, due to the configuration of the rest of the files, I should only find this string by the pattern "scrpts". But I can only make sed substitute that pattern and not the whole string. How can i make sed change the whole string where a pattern occurs instead of just the pattern i specified?
Should I be using other command?
Best regards,
Carlos
PS: Thanks Vino for your help in my other question.