I am attempting to list files that don't end in gz
I have a minimal working example:
ll chrX_PAR1.phased.vcf.gz | grep -v gz$
should show empty, but the file still shows, with or without quotes.
I have also tried
ll chrX_PAR1.phased.vcf.gz | grep -vP gz$
but this fails as well.
ll chrX_PAR1.phased.vcf.gz | grep -vE 'gz$'
also fails.
I have read Correct regex not working in grep and Anchors not working with grep but I don't see anything there that would solve this problem.