I want to delete only some spaces(say 4) after the line$#*425 with space
I am not able to complete it please suggest
echo "line$#*425 with space " | sed 's/ /\1 \2/g'
i am thinking of using od -b also but still not able to figure it out
how do i do it
NOTE:spaces could be a normal " " or a tab character also
EDIT:heres how i did a test to check for the below answer
[root@testgfs2 test]$echo -e "line$#*425 with space \t " | sed 's/[[:blank:]]\{4\}$//' | od -b
0000000 154 151 156 145 060 052 064 062 065 040 167 151 164 150 040 163
0000020 160 141 143 145 040 011 040 012
0000030
the deletion is happening not after the space word but at the end of line. the tab character(011) is still there