Search Results

Search: Posts Made By: Medova
1,573
Posted By Medova
What I use is awk...
What I use is
awk '{printf("%11.8s%8.7s\n",$1,$2)}' infile > outfile

and I get

500209 486.564
500210 555.4

which works fine for the thing I want to use - however, I still need to move...
1,573
Posted By Medova
Format columns
I have a very easy one for you this morning :)
A file containing this type of formated data:

500190 488.356
500193 546.7
566486 466.75
506654 288

However, it should be formated like this:...
4,748
Posted By Medova
How to input text on every 2nd line?
I have a file in two columns consisting of only numbers. I would like to put a string (the same textstring) on every second line, so that

501006 420.000
401602 165.000
.
.
.

becomes:
...
1,565
Posted By Medova
Perfect... Works like a charm Thx a lot ...
Perfect... Works like a charm
Thx a lot

However, this is written for shell (?) - since I have to do some more manipulation, like the output digit format, so can you help with the syntax for an...
1,565
Posted By Medova
I get nothing written to the new.file when i...
I get nothing written to the new.file when i execute

awk 'NR==FNR{if(NR>2 && $2>m){m=$2};next}FNR>2{$2*400/m}1' ex.file new.file
1,565
Posted By Medova
How do I standardise an entire column?
I have a kind of a multi-step problem:
What I want to do is: To find the maximum value in the second column, divide the entire column with this value and multiply with a user defined variable (e.g....
Showing results 1 to 6 of 6

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