I am new to awk
and need some help
this works
awk '{
for(i =0;i<10;i++){
if ($27 == 'addr1') {
print >"temp.csv"
}
}
}' /tmp/input.csv
i tried below and is not working, how to pass count value from outside to awk command
count=10
echo $count
awk '{
for(i =0;i<count;i++){
if ($27 == 'addr1') {
print >"temp.csv"
}
}
}' /tmp/input.csv