0

Here is the code:

find /home/185053/ -iname "*.{txt,out}" -type f -size +8 -size -15

So, the command works if I exclude the -iname "*.{txt,out}" part out.

I've tried using | grep "*.{txt,out}" at the end but that doesn't work either.

Any ideas?

1 Answers1

1

Try using grep with -E option and like this:

find /home/185053/ -type f -size +8 -size -15 | grep -E "*\.txt|*\.out"
mtnezm
  • 1,009
  • 1
  • 7
  • 19