[Top][All Lists]

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

Re: file where sep decimals is comma

From: Francesco Potortì
Subject: Re: file where sep decimals is comma
Date: Sat, 24 Sep 2011 02:11:27 +0200

>>> 1984;4249,6
>> 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

Francesco Potortì (ricercatore)        Voice:  +39.050.315.3058 (op.2111)
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Fax:    +39.050.315.2040  
(entrance 20, 1st floor, room C71)     Web:

reply via email to

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