I would like to list all Fortran 90 files in bash without files ending in _tst.f90
. My best try so far is
ls -l ../src/*[!_tst].f90
According to Bash reference on pattern matching [!_tst]
takes into account only single occurences of _
, t
and s
. Is it possible to tell bash that _tst
should be a sequence? Brackets (_tst)
, single '_tst'
and double quote "_tst"
symbols do not work.