is thereDoes anyone hashave an idea abouton how to remove hidden characters from a string in the shell. this is an exemple :
#echo $a;
[root@localhost ~]#
but when i showw hidden characters :
#echo $a | cat -v
[root@localhost ~]# ls ^H^[[K^H^[[K^H^[[Kpwd^H^[[K^H^[[K^H^[[Kls^H^[[K^H^[[Kpwd^H^[[K^H^[[K^H^[[K
i want to delete hidden characters to have this output?
#echo $a | cat -v
[root@localhost ~]#
- This is an example : - # echo $a; [root@localhost ~]#
- But when I "force" display of hidden characters it looks like this: - # echo $a | cat -v [root@localhost ~]# ls ^H^[[K^H^[[K^H^[[Kpwd^H^[[K^H^[[K^H^[[Kls^H^[[K^H^[[Kpwd^H^[[K^H^[[K^H^[[K
- I want to delete hidden characters to have this output: - # echo $a | cat -v [root@localhost ~]#