I am trying to figure out how to count the number of lines in file.txt that have at least ONE number or digit.So far I figure will count the amount of lines:wc -l filename.txtI then figure this grep command will display all lines in file.txt that contain at least one digit:grep -E '[0-9]+' list.txtHow do I combine the them to find the answer to my question?
using grep and wc commands to solve a problem
files;grep;wc