backspace equivalent in shell scripting
by RameshKumar[ Edit ] 2010-01-27 14:46:34
backspace equivalent in shell scripting
echo -e 'testing back'; echo --space back;
RESULT :
testing back
--space back
echo -e 'testing back\b\b\b\b\c'; echo --space back
RESULT : testing --space back
In the above code the \b option will remove backspace and \c option will suppress the newline.