I am trying to run a for loop but trying to exclude files with a specific pattern in the filename. This is the command I am using:
for file in /home/ubuntu/discovery/download/*![.en].mp4; do
I would like this filename to be included:
Blub - S03E10 - Nervous Breakdown.mp4
but this filename to be excluded
Blub - S03E10 - Nervous Breakdown.en.mp4
Can't get it to work. What am I doing wrong?
Thanks in advance