How do I replace echo in all my ksh scripts to echo -e.
Example:
Input
Script containing following lines,
echo "\nE-MAILING TO INTERESTED PARTIES....\n"
set echo off
echo -e "\nE-MAILING TO INTERESTED PARTIES....\n"
OUTPUT:
I should not disturb set echo off command and only change the printing echo commands. If already it is changed to echo -e, I should not replace again. I should replace it in a single shot for all the scripts from root directory.
echo -e "\nE-MAILING TO INTERESTED PARTIES....\n"
set echo off
echo -e "\nE-MAILING TO INTERESTED PARTIES....\n"
This should work –
Test:
findandexec: