类似的东西:
filePattern='sor.log*|sor.SOR.log*'
myLocation=/opt/tradertools/omer
clientLocation=/opt/tradertools/omer/sor/from
clientName=vmonitorlmpa
clientUser=root
clientPass=triltest
export SSHPASS=$clientPass
sshpass -e sftp -oStrictHostKeyChecking=no -oBatchMode=no -b - $clientUser@$clientName << !
mget $clientLocation/$filePattern $myLocation
bye
!
其中
filepattern
就是需要“或”运算的地方。