I defined $A that has the value A12 (for example ). how do I pass that value to the location that has XXX in the command :
ls -dtr XXX_[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] | sort -n | tail -1
the XXX_[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] is actually a folder name format (a12_20130233)
is there a way to pass it?