For a fixed prefix length I can do it like so:
[ a${filename:0:2} = a.# ] && echo temporary emacs file
How to do it for an arbitrary prefix?
Is there a cleaner way?
[['s = operator takes a pattern in the right operand.
[[
=
var=123 [[ 1234 = $var* ]] && ...
1.4m articles
1.4m replys
5 comments
57.0k users