Search Results

Search: Posts Made By: atzounis
2,356
Posted By atzounis
Thanks once again!
Thanks once again!
2,356
Posted By atzounis
I had tried a code like this but it prints it...
I had tried a code like this but it prints it like a new row with a whitespace charachter. Is it a separator problem?
00.00.dat 00.10.dat 00.20.dat 00.30.dat
292.9998
292.3675
292.0370
...
2,356
Posted By atzounis
HOORAY! we' re getting closer :D This code...
HOORAY! we' re getting closer :D
This code seems to get a bit closer...
Look, I really appreciate your efforts on my problem! To make it easier, for me it would be just fine if I had an output like...
2,356
Posted By atzounis
I came up with this code: awk...
I came up with this code:

awk '{a[FNR]=a[FNR] FS $X;t=(FNR>T)?FNR:t}END {for (i=1;i<=t;i++) print a[i]}' *.dat > output.txt

It works perfectly for extracting the first and second columns (...
2,356
Posted By atzounis
There has to be something wrong about this code....
There has to be something wrong about this code. I am still trying...
For the attached files. The output is:

1.00 163.00 292.3690
-00.10.dat 292.0391
-00.20.dat 291.8038
-00.30.dat
3.00...
2,356
Posted By atzounis
Nope... it is breaking somewhere... :-( I...
Nope... it is breaking somewhere... :-(
I changed the file names in an easier pattern. Now they are all in 00.00.dat (00.00.dat, 00.10.dat, ... , 23.50.dat)
I attach a sample so that you can have...
2,356
Posted By atzounis
Hello and thanks a lot for your immediate reply. ...
Hello and thanks a lot for your immediate reply.
It was my mistake to use "|" as separator because the actual separator is " " (single space) and files are .dat
Guess the code that does the work...
2,356
Posted By atzounis
Multiple file merge by column
Hello all,
I am quite new in linux shell scripting and I have this issue.
I ve got some files including measurements taken every 10minutes for a whole day.
File name format is: 00.00, 00.10,...
Showing results 1 to 8 of 8

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