|
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:
1984;4249,6sed -e "s/,/./" -e "s/;/,/" old_file> new_filesed '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. Regards Marco PS) No idea of the system used by the original requestor.
[Prev in Thread] | Current Thread | [Next in Thread] |