[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file where sep decimals is comma

From: Marco Atzeri
Subject: Re: file where sep decimals is comma
Date: Sat, 24 Sep 2011 06:24:28 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2

On 9/24/2011 2:11 AM, Francesco Potortì wrote:

sed -e "s/,/./" -e "s/;/,/" old_file>  new_file

sed 's/,/./; s/;/,/' old>  new

does the trick with less writing, although it does look like my cat
danced on the keyboard.

Well, if we're at less writing, this one is shorter :)

tr ',;' .,<o>n

this is fine :-) on Unix-like

but sometime I needed such operation on windows,
and sed for MS is easy available.


PS) No idea of the system used by the original requestor.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]