To be precise,
my file_master can have following character, field1 need to be converted to field2 ( \,+\-,\\ etc)
Quote:
§ \
± +\-
¶ \\
¼ 1\4
½ 1\2
¾ 3\4
÷ \
Ofcourse I can do with multiple sed's
like below
sed -e 's,÷,\\,g' $src > $src$$
[[ $? -ne 0 ]] && [[ -s $src ]] && mv $src$$ $src || exit 3
sed -e 's,±,\\,g' $src > $src$$
[[ $? -ne 0 ]] && [[ -s $src ]] && mv $src$$ $src || exit 4
but wandering if it can be achevied in master and data file approach (without hardcoding in sed command) .
I tried, giving input as ,÷,\\ and ,±,\\ , however when it reads it strips one of the backslash and sed fails.