Search Results

Search: Posts Made By: silyin
1,753
Posted By silyin
I have understood! After first field is \r which...
I have understood! After first field is \r which erase first field when I look output file by 'more' or 'head'

Thanks a lot for all who has helped me!
1,753
Posted By silyin
Hi neutroscott, Excellent code, but 'well' at...
Hi neutroscott,
Excellent code, but 'well' at first column of output is empty...
1,753
Posted By silyin
OK. The problem is I have about 2000 files (too...
OK.
The problem is I have about 2000 files (too big files) where is some ID in first raw which I want to transform to first field in all followed raws and to concatenate all files in single. I can...
1,753
Posted By silyin
Next one. Why the value of variable 'well'...
Next one.
Why the value of variable 'well' defined for record 1 is empty for another records?


#! /bin/sh
for names
do
sed -e s/:// $names |
gawk '
NR==1 { if($1=="UWI") well=$2 }
NR>26...
1,753
Posted By silyin
Simple question
Sorry for stupid question, but why this script gives that output?

$ awk 'BEGIN { well=56789; print 1234$well }'
1234

I expected 123456789
Showing results 1 to 5 of 5

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