simple if you want an underscore char:
here is a shellfunction that does the trick.
glob_under() {
_dir=$1
for x in `ls $_dir`
do
if [ -f "$x" ]
then
echo $x | grep _
else
continue
fi
done
}
called like:
glob_under /tmp
Now if you are talking about real whitespace
between name elements: there are file conversion utilities for this: sort the filename data first or use one of these to rename these files.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.