-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 09/07, Chris Green wrote:
This really sounds simple but I can't think of a neat way of doing it,
I want to test (in bash) if there's any file with a specific suffix in
a particular directory.
I suppose you could use ls
ls gl*b &>/dev/null && echo Yes || echo No
seems to work
Steve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJTvWyMAAoJEL/3HArzwYbRnSIP/js/4ME/u/eoQ2/5ACQZgbgQ
17cTK6v8ao6ZokPa5zJ2LxkuVd2hcJkiajFHE6JOu/HKYJpKj9r1KpqW0/2hfAmO
xzst38LPJBopPz6aEL9tbc4sxAjDcZrXxr2du2YzPHKV1LVIxlIC1eemF3MWAxcy
paleeQNh8WUahY4Hw/vdVhu/XiXmdZ6eI1CoYXwfPljZIjZCP6AmWtLrnnLZhuut
DuSFrnGRXI1MM0LhygoOad9JXlLkjq9MMIqf9C5NSzOu6vpAAaBoBNB6txFJfC9R
NSRriuW87zhaCFEpOBPJ7gTJ5DJkkxEAd99e2NdEDqaPucIM62I7eBnFNckAJEza
0ql0USEGLbrPIYTlm0RQ0mYbUvyFMCRcfKWPQbvGiUEIYTluK9WJTx0lxOt/Mzm4
1Nwt1BVadIz0VsySWyP3PVKbeLPx6SsEZQaeq71yk5UgnW5yhm0ozU/y6MP8QB9i
JrejR3cCCjr7LxVQZcEbD75COVe/o9YYT4TI5O8cGoHnIZrbVTHldOloUBSgb3Xu
CR20XzDChlWn8Rt3L//VNB0F8UvZj4Kv+p2PAUiS+BOIUtCIS6iYB6Z00snAxwFI
TMQZj1vI4sIskVZmLWv4P2TpVmhq+x/ni5DpXhElgKucpwQoRkqKY+SBXzIbe4i+
nz1L6e6YYVGpsHUFueyF
=Ew/p
-----END PGP SIGNATURE-----