Search Results

Search: Posts Made By: geomarine
3,566
Posted By geomarine
Thanks RudiC, I could just remove the fields with...
Thanks RudiC, I could just remove the fields with values above -2000, but I want to remain the structure such that I have a 4x4 matrix. then perform calculations only on the remaining values.
I...
3,566
Posted By geomarine
awk replace cells with NaN/delete if condition
Hello, I will like to delete/replace $3 with NaN. condition $3>-2000 (file1.dat) to produce out.dat. I want to retain the structure of the table. I use this code, this output only $3. Any idea on how...
1,173
Posted By geomarine
Yes, I apply it to large data file and it failed....
Yes, I apply it to large data file and it failed. I don't understand why I should have output (a.xyz) that is more than number of rows in t.xyz.
I tried this by vgersh99 and it works fine.
awk...
1,173
Posted By geomarine
awk match two fields in two files
Hi, I have two TEST files t.xyz and a.xyz which have three columns each. a.xyz have more rows than t.xyz. I will like to output rows at which $1 and $2 of t.xyz match $1 and $2 of a.xyz. Total number...
2,793
Posted By geomarine
My Cygwin crashed and I have to re-install it so...
My Cygwin crashed and I have to re-install it so I couldn't test the recommendations. I have tested the 'cat' on a windows 10 OS and it works fine. So, the problem is with my computer though am not...
2,793
Posted By geomarine
Thanks Don Cragun, My objective is to have a...
Thanks Don Cragun,
My objective is to have a single column data i.e. <new-line> line terminators on every line with no <carriage-return> as follow:
file1.txt:
1234
1234
1234

file2.txt:
aaaa...
2,793
Posted By geomarine
Windows 7 Professional
Windows 7 Professional
2,793
Posted By geomarine
Thanks RavinderSingh13 and Scrutinizer . I check...
Thanks RavinderSingh13 and Scrutinizer . I check to see if there are carriage returns with:
cat -v Input_file
result:
cat -v file3.txt
1234^M
1234^M
1234aaaa^M
bbbb^M
cccc^M
dddd
using...
2,793
Posted By geomarine
Merge multiple columns into one using cat
I will like to merge several files using 'cat', but I observe the output is not consistent. the merge begins at the last line of the first file.
file1.txt:
1234
1234
1234

file2.txt:
aaaa...
3,776
Posted By geomarine
I have tested it, the output is correct. read...
I have tested it, the output is correct.
read N L <<< $(grdinfo data.grd | awk '{print $10,$5}')
echo $N $L
3,776
Posted By geomarine
Thanks. I don't know were '$' is missing. can you...
Thanks. I don't know were '$' is missing. can you please point that out? I also found out that '<<<' represent 'here'.
read N L <<< $(grdinfo data.grd | awk '{print $10,$5}')
what is the...
3,776
Posted By geomarine
Thanks vgersh99 and RudiC. My bash version is:...
Thanks vgersh99 and RudiC. My bash version is: GNU bash, version 4.3.46(7)-release (x86_64-unknown-cygwin)
3,776
Posted By geomarine
How can I assign awk's variable to shell script's variable?
I have the following script, and I want to assign the output ($10 and $5) from awk to N and L:
grdinfo data.grd | awk '{print $10,$5}'| read N L

output from gridinfo data.grd is:...
Showing results 1 to 13 of 13

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