Linux xargs命令


#!/bin/bash

TIME=`date +"Y%YM%mD%d"`;

ls $TIME*|xargs -i sshpass -p $SPASS scp -o StrictHostKeyChecking=no {} root@$SHOST:$BACKUPDIR



你可能感兴趣的:(Linux xargs命令)