How do I check if the name of some file matches some pattern (has "SSS" in it, for example) in
if clause? My variant does not seem to work (it is always false).
for f in B/* ; do if [ $f = .*SSS.* ] ; then # if [ -f $f ] -and -regex ".*SSS.*"; then echo $f fi done