I have a list of prices in which I am the most and My input: Output: I know that it is possible to send values from Is there a way to do the same thing, but to bash from awk, so i You can do this: then: OR: then: OR: then: awk
bash I am able to find these, but I am unable to assign values to some variables, so I can use them later in
bash .
Number position length value 1 2 40 0.96 --- 5 45 0.97 4 5 47 0.96 --- 5 35 0.95 2 5 60 0.95 -
60 and
35 .
bash to
awk
-v with my < Code> awk script
variable1 = string; Awk -v variable1 = $ variable '{}'
min And
max ?
read-r max minutes & Lt; & Lt; ($ 3 & lt; minutes) min = $ 3;} END {print max, minimum}
echo $ max echo $ min
arr = ($ (awk 'NR == 1 {max = $ 3; Min = $ 3} {If ($ 3> max) max = $ 3; if ($ 3 & lt; min) min = $ 3;} END {print max, min} 'List.txt))
resonant $ {arr [0]} # maximum resonance $ {arr [1]} # min
set - $ (awk 'NR == 1 {max = $ 3; minutes = $ 3} {if ($ 3> maximum) max = $ 3; if ( $ 3 & lt; minutes) minutes = $ 3;} END {print max, minimum} 'List.txt)
No comments:
Post a Comment