echo sss for i in 0 1 2 3 4 5 6 7 8 9; do echo $i sed -e "s@${i}-@${i} @g" LCout > temp rm -f LCout mv temp LCout done