Search Results

Search: Posts Made By: Board27
1,950
Posted By Board27
Filter and delete numbers in a list
Hello,

I've got a list of a single column numbers like

3000.66
3002.55
3062.23
3242.12

etc...



I would like to delete all numbers higher than for example 3060.00 and lower
than...
1,382
Posted By Board27
thanks
thanks
1,382
Posted By Board27
it comes : 314,63.14 12:22 it is not...
it comes :

314,63.14
12:22
it is not adding a column with comma. Anyway i express myself in a wrong way. I don't need each N time. I just need to add timestamp at a certain line, for example,...
1,382
Posted By Board27
Adding a timestamp every N row in another column
Hi,
i have a raw output file like this

167,63.50

167,63.50

168,63.68

166,63.68

168,63.68
I would like to add every each N rows (for example 60) and in a third column , a timestamp...
2,103
Posted By Board27
Hi, of course, i've corrected the output as it...
Hi,
of course, i've corrected the output as it should be.
thank you
2,103
Posted By Board27
Basic Bash algorithm with sum/subtraction
Hi all,
i'm making some test on a data file. Imagine i have two columns inside it :


80377,20

80377,20

80379,19

80378,20

80380,20

80382,20

80381,21
Just to understand how can...
915
Posted By Board27
Thanks for your answer. i've tried with ...
Thanks for your answer.

i've tried with

awk 'BEGIN{last=NR == 1}{delta[NR]=$1-last; last=$1; print $0" "delta[NR]}' filenamebut still create same output with delta by each line

and with
...
915
Posted By Board27
Delta from the first digit
Thanks of your suggestions i was able to calculate the delta between some numbers in a column file with .

awk 'BEGIN{last=0}{delta[NR]=$1-last; last=$1; print $0" "delta[NR]}'

the file was...
732
Posted By Board27
can i ask also how to add an additional row with...
can i ask also how to add an additional row with for example 1.000 ?

Imagine, for the code above to add a column of 1000 at each line present in the file

Thanks!

---------- Post updated at...
732
Posted By Board27
Operations inside a file
Hi all,
i need to do a piecewise integration between this example data inside a file :

500856704.00 11536282.5600897 50496
500402784.00 11538000.3654401 -453920
500654880.00 11538000.4662785...
3,491
Posted By Board27
Moving decimal point in a series of numbers
Hi,
i need to move the decimal point from a file listing some numbers like this :

49899.50

49914.55

49894.48

49939.65

49879.44

49919.57

49934.62

49944.67

49954.72
1,457
Posted By Board27
thanks Rudi and all. i think i have found a...
thanks Rudi and all.
i think i have found a solution with python

thanks a lot for your Time.

Kind Regards
1,457
Posted By Board27
300 478 678 8221 9551 12200 16721 18200 19100200...
300 478 678 8221 9551 12200 16721 18200 19100200 448 628 5221 9551 10200 15721 19200 19300etc.. need continuity between groups like this . Events limit for each group can be from 0 to 20.000

the...
1,457
Posted By Board27
Hi thanks for your answers . No i mean : random...
Hi thanks for your answers .
No i mean : random values incrementing to 20.000 then it comes back and restart to 20.000.At the end ,imagine i have N groups of random values incrementing to 20.000. i...
1,457
Posted By Board27
"unwrap a sequence"
Hi
i have a list of random events from 1 to 20.000
imagine that , while collecting events, it arrives at 20.000 and then it wraps
from the beginning.
Is there a way to "unwrap"all sequences from...
1,224
Posted By Board27
Thanks! i've done with read var1 <...
Thanks!

i've done with


read var1 < txtif.out
while [ $var1 = x ] ; do
echo file1
echo file2
echo y > txtif.out
read var1 < txtif.out
done
exit 0

thanks for help!
1,224
Posted By Board27
Thanks. Is there a way to modify a control...
Thanks. Is there a way to modify a control variable within the loop?

Imagine the starting file has x inside. (txtif.out)
i would like to modify it so when, in the loop, i modify the file (ex with...
1,224
Posted By Board27
Problem with loop
Hi all,
a problem with a loop. Imagine it starts with

var1="$(cat txtif.out )"while [ $var1 = x ]
do
echo file1
echo file2
echo y > txtif.out
if [ $var1 = y ]
then
break...
1,061
Posted By Board27
thanks a lot!
thanks a lot!
1,061
Posted By Board27
Combo for text
Hello all,
i need to extract a part from an API output. Imagine this is the output :

"result":[]
"result":["alternative":["transcript":"hello my name is Mike"
"confidence":0.98091763...
2,365
Posted By Board27
i'll give a try. Thanks for your support. ...
i'll give a try. Thanks for your support.

Kind Regards
2,371
Posted By Board27
Read from last point
Hi again,

first thanks for all your suggestions. This forum it is very useful.
I have a question. Is it possible to read from the last line a file was closed. For example, imagine that i've got...
2,365
Posted By Board27
Read from last point
Hi again,

first thanks for all your suggestions. This forum it is very useful.
I have a question. Is it possible to read from the last line a file was closed. For example, imagine that i've got...
1,424
Posted By Board27
Thanks a lot!
Thanks a lot!
1,424
Posted By Board27
Display the last part of a number list
Hi ,
i have a file wich have 50+ of numbers like :


0.014544106
0.005464263
0.014526045
0.005484374
0.014539412
0.005467600
0.014558349
0.005452185


i would like to display the list...
Showing results 1 to 25 of 45

 
All times are GMT -4. The time now is 10:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy