help-octave
[Top][All Lists]
Advanced

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

Re: io format specifier question


From: A. Kalten
Subject: Re: io format specifier question
Date: Tue, 1 Jul 2008 14:50:48 -0400

On Tue, 1 Jul 2008 14:24:59 -0400
"A. Kalten" <address@hidden> wrote:

> 
> If you're on a unix system, just do:
> 
> sed s/-/e-/ file > file-new
> 
> This will convert all "0.112977-141" to "0.112977e-141"
> 

I should amend that command in case some values are negative,
e.g. -0.112977-141

sed 's/\([0-9]\)\(-\)/\1e\2/' file > file-new

This will replace only the minus sign after the number.

AK



reply via email to

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