Ubuntu 12.04 precise
I get this figures in different cells as strings but they can be converted to numbers without the spaces.
786 879
3 825 647
4 612 526
How to convert them
Thank you
How to remove spaces from strings?
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
Code: Select all
# echo "123 456" | sed 's/ //g'
123456
#
You can avoid using sed by using a string operation.
It's explained well in the Advanced Bash scripting guide
http://www.tldp.org/LDP/abs/html/refcards.html#AEN22664
___________________________________________________
It's explained well in the Advanced Bash scripting guide
http://www.tldp.org/LDP/abs/html/refcards.html#AEN22664
___________________________________________________