Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: sea
2,254
Posted By sea
Sorry Rudi, my hexdump'ish is not fluent. Ok i...
Sorry Rudi, my hexdump'ish is not fluent.
Ok i guess that way no 'sed' is required :)

Anyway, it is working now.
Thanks alot, to all of you!

-->MAXVAL=$($AWK -vRS=$'\r' 'END{NR=3}END{print...
2,254
Posted By sea
Ravinder: Ok, just wanted to be sure. RudiC:...
Ravinder: Ok, just wanted to be sure.
RudiC: Literal (copy-paste), as i get a 'blank screen' when pressing CTRL+M to get that character.

---------- Post updated at 15:18 ---------- Previous...
2,254
Posted By sea
@ Ravinder: Figured that too :) My question is...
@ Ravinder: Figured that too :)
My question is more like if there is any specific reason, or did you just start from bottom? :p
25 0
26 0
27 81.5M
28 0
29 20024
30 0
31 0
32 14343
33 0
34...
2,254
Posted By sea
Regular: cat out.tmp % Total % Received...
Regular:
cat out.tmp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
30 81.5M 30...
2,254
Posted By sea
Guess the NR=3 tells awk to jut parse the third...
Guess the NR=3 tells awk to jut parse the third line, and in this case could be replaced by END - as it seemed.
Might i ask why you've chosen $39 instead of $27 (as i did, first found)?
Is there...
2,254
Posted By sea
@ Franklin: awk 'NR==3{$1=$1;print $2}'...
@ Franklin:
awk 'NR==3{$1=$1;print $2}' out.tmp
0


@ RudiC: Please see: https://www.unix.com/302956200-post6.html
It is redirected stderr to that file. (... 2>out.tmp) (posted '2&>', just...
2,254
Posted By sea
Thanks for the hint, didnt change much here...
Thanks for the hint, didnt change much here htough :(
0 tui # awk -F" " 'BEGIN{NR==27}{print $2}' out.tmp
Total
Upload
0
0 tui # awk -v FS=" " 'BEGIN{NR==27}{print $2}' out.tmp
Total
Upload...
2,254
Posted By sea
No change, still just a zero. Even tried...
No change, still just a zero.

Even tried with:
awk -v IFS=" " '{$1=$1}END{print $2}' out.tmp
As well, just a 0.

Might it be a curl issue?
0 tui # curl...
2,254
Posted By sea
Hello Ravinder Yeah, the saving to the...
Hello Ravinder

Yeah, the saving to the variable was mainly for testing purposes.

awk 'END{print $2}' out.tmp
0

Sadly, no change.
Thank you
2,254
Posted By sea
This awk should work, shouldn't it?
Heyas

Trying to parse a tempfile, but somehow i mess up.
To my understand, this should work...

Plain:
tail -n1 out.tmp
1 81.5M 1 1066k 0 0 359k 0 0:03:52 0:00:02 ...
Showing results 1 to 10 of 10

 

Featured Tech Videos

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