I'm trying to use the find
command to list the size of a certain set of files but am getting no output. The command I use is:
find POD -type f -name *.mp3 -or -name *.ogg -ls
Which produces no output. While:
find POD -type f -name *.mp3 -or -name *.ogg
does produce output, I've also tried the actions:
-printf "%p %k KB\n"
-exec ls -ls '{}' \;
-print0
but all of these give no output. When I use any of these actions with a different expression e.g.:
find . -maxdepth 1 -type f -printf "%p %k KB\n"
I also get the expected output. Does anybody have any idea what the problem is? I'm running:
Linux irimi 3.10.37-1-MANJARO #1 SMP Mon Apr 14 20:56:29 UTC 2014 x86_64 GNU/Linux
aka an up to date Manjaro linux distribution. The shell I use is: /bin/bash
version 4.3.8(1)-release
.
The content of my SHELLOPTS
environment variable is:
braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
my BASHOPTS
environment variable is:
cdspell:checkwinsize:cmdhist:complete_fullquote:dotglob:expand_aliases:extglob:extquote:force_fignore:histappend:hostcomplete:interactive_comments:nocaseglob:progcomp:promptvars:sourcepath
Again any help on trying to debug this would be very much appreciated.