Create a shell script which prints the line contents when the line number is divisible by 3 from an input file. Assume the first line is line 1. At the end of the script, if the total number of lines divisible by 3 is greater than 10, print “big”. Otherwise, print “small”.
I need help in answering this question. so far this is what I have
awk 'NR%2==0' $file
count=$(wc -l $file | grep -o "^[0-9]")
if [ $count -gt 20 ]