Hi,
I have a file that looks like this:
36-
9+
45-
43+
400-
700+
I want to put a space between the number and the -/+ sign. So the output file will look like this
36 -
9 +
45 -
43 +
400 -
700 +
thanks
Hi,
I have a file that looks like this:
36-
9+
45-
43+
400-
700+
I want to put a space between the number and the -/+ sign. So the output file will look like this
36 -
9 +
45 -
43 +
400 -
700 +
thanks
One way:
sed 's/\(.*\)\(.$\)/\1 \2/' file
sed 's/\(.$\)/ \1/' file
sed 's/.$/ &/' file