Search Results

Search: Posts Made By: Paul Moghadam
3,981
Posted By MadeInGermany
This can look backwards awk '{seen[$2]=$3} ...
This can look backwards
awk '{seen[$2]=$3}
($1 in seen) {print $1,seen[$1]}' input
3,981
Posted By Scrutinizer
Typically a rough main structure would be: ...
Typically a rough main structure would be:
while read var1 var2 var3
do
# do something with $var1 $var2 and $var3, for example
echo "$var1, $var2 and $var3"
done < infile > outfile
3,981
Posted By juzz4fun
You mean output like 4 12 5 13 ?? Try:...
You mean output like
4 12
5 13
??

Try:
awk '$1==$2{print $1" "$3}' input
Showing results 1 to 3 of 3

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