grep '[:digit:]{1,}-{1,}' *.txt| wc -l This command outputs: 0
grep '1-' *.txt| wc -l However, this command outputs: 10598
Both commands are being run from the same directory. The first command should have returned greater than or equal to the output of the second command. Can anyone shed some insight about what is going on here?
grep -covergrep | wc -l