I would like to print $1 and $2 if $2<25from text files. I also need to get the total number of students with marks less than 25 from all files. How can I do this with awk or sed?
students marks
jerry 12
peter 35
john 5
jerry 15
john 10
Desired output
jerry 12
john 5
jerry 15
john 10
Total no:of students :- 4
In
awk:Output:
If you want the output sorted by grade (lowest to highest):
Sorted Output:
-nnumerical sort;-k2,2sort on the second field.