|
From: | Marco Atzeri |
Subject: | Re: file where sep decimals is comma |
Date: | Fri, 23 Sep 2011 17:10:38 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 |
On 9/23/2011 3:13 PM, Sebastian Kruk wrote:
Hi, I have a csv file where sep is ";" and I have "," as decimal point. How I can import directly in Octave? An example: 1953;1453,6 1954;1480,1 1955;1576,4 1956;1621,5
[cut]
1983;4036,7 1984;4249,6 Thanks, Sebastián.
sed is your friend, in two step sed -e "s/,/./" -e "s/;/,/" old_file > new_file Regards Marco
[Prev in Thread] | Current Thread | [Next in Thread] |