I have a directory with full svn backups named like this:
name1.20100412.r9.bz2 name1.20100413.r10.bz2 name2.20100411.r101.bz2 name3.20100412.r102.bz2 ...
I need to check if a backup file exists using only the name and version number. I tried test , but this did not work:
if [ -e name1.*.r9.bz2 ]; then echo exists; fi [: too many arguments
How to check if a file exists?
source share