I'm trying to capture [x]/[y] and if y is greater than x using a regex pattern. The input is in the second column ($2)
Example input:
NAME1 0/1
NAME2 0/2
NAME3 1/2
NAME4 1/3
NAME5 2/2
NAME6 1/1
Output:
NAME1 0/1
NAME2 0/2
NAME3 1/2
NAME4 1/3
What would be the right approach using awk?
I've done so far:
cat pods | grep -v Completed | awk -e '$2 ~ "[0-9]/[0-9]"'
I'm not sure how to proceed or to check if the second [0-9] is greater.