I'm writing a bash script that needs to loop files inside a directory that do not match a specific extension. So far, I've found that the following code loops all files that matches the given extension:
for f in *.txt ; do
echo $f;
done
How could insthead loop through files that do not match the specified extension?
See Question&Answers more detail:os