Search Results

Search: Posts Made By: rogeriog.em
7,476
Posted By rogeriog.em
Oh yeah, thanks Yoda, I missed this one. Pretty...
Oh yeah, thanks Yoda, I missed this one. Pretty obvious. Thanks for your dedication. ;)
7,476
Posted By rogeriog.em
Thanks Yoda and RudiC, both codes work in the...
Thanks Yoda and RudiC, both codes work in the input I provide. But is there a way to do it disregarding the first column values. I mean:
file 1 file 2
2 5 4 5
5 6...
7,476
Posted By rogeriog.em
Sum fields of different files using awk
I'm trying to sum each field of the second column over many different files.
For example:

file1: file2:
1 5 1 5
2 6 2 4
3 5 ...
1,008
Posted By rogeriog.em
Problem with sub in awk
Hello, I am trying to run the following code:

awk '{if( NR>=10 && NR<=2000 ) sub($0,0)}1' infile > outfile
in this data, to turn every line in a 0:

2.735369106580736E-002
...
9,582
Posted By rogeriog.em
Thanks for all the answers, it's really clarified...
Thanks for all the answers, it's really clarified and I got it working. Thank you. ;)
9,582
Posted By rogeriog.em
Thanks it works perfectly :D Can you explain...
Thanks it works perfectly :D

Can you explain what is that X for and why there is a 1 in the end of the command??
9,582
Posted By rogeriog.em
Delete last characters in each column
I need to delete the last 11 characters from each number and they are all in the same line (each is in a different column):

-6.89080901827020800000 3.49348891708562325136 1.47988367839905286876...
Showing results 1 to 7 of 7

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