• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How to send a "backspace" character in Linux (UNIX)?

RaiderJ

Diamond Member
I'm writing a shell script on Redhat, but for the life of me can't figure out how to send a backspace character from the script.

I think it's something like:

echo "testt\b"

where the "\b" should delete the extra letter/space/whatever.

Anyone know? I've searched on some websites, and for the life of me can't figure it out.
 
That doesn't seem to work... or I'm using it wrong.

How would that be used in a command? I've tried echo -e "testt", echo "testt" -e, and neither seems to work.

And just for reference, I'm not really trying to delete an extra "t", but that's just my example.

Thanks!
 
Back
Top