I've been trying to write a bash script that searches for any compressed file(.tar, .tar.gz, .zip, etc) and them decompresses for you. However, I can't see to get grep to search for the file extensions. I've tried;
but no luck. Any ideas?
grep *.tar /path/to/stuff