Search Results

Search: Posts Made By: Jikuu
1,592
Posted By jim mcnamara
VAR=Bob awk -v VAR=$VAR '$3 == VAR { print $1...
VAR=Bob
awk -v VAR=$VAR '$3 == VAR { print $1 }' file.txt


This is the more modern way, POSIX awk.
1,592
Posted By Franklin52
awk -v VAR1=$VAR1 -v VAR2=$VAR2 '($3 == VAR1 &&...
awk -v VAR1=$VAR1 -v VAR2=$VAR2 '($3 == VAR1 && $4 == VAR2) { print $1 }' file.txt
Showing results 1 to 2 of 2

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