Hi,
I need more explination on it, how it works
abcd="$(echo "$abcd" | sed 's/ //g')" >> ${LOGFILE} 2>&1
can any one suggest me on this?
Rgds,
LKR
Hi,
I need more explination on it, how it works
abcd="$(echo "$abcd" | sed 's/ //g')" >> ${LOGFILE} 2>&1
can any one suggest me on this?
Rgds,
LKR
Hello lakshmanraok,
I think following command will make more sense.(Which I assume may fulfil your requirement of removing spaces
from a variable and take it's output to a file, with showing errors to standard output)
echo "$abcd" | sed 's/ //g' >> ${LOGFILE} 2>&1
Following explaination may help you in same.
echo
value of variabe named abcd
with echo "$abcd"
then remove the spaces in it with NULL with sed 's/ //g'
and taking output to redirect standard error to standard output >> ${LOGFILE} 2>&1
Thanks,
R. Singh