photo move

#!/bin/bash
COLOR_PHOTO_PATH="/var/www/rails/webapp/public/data/images/colors/"
CHIP_COLOR_PATH="/mnt/chip/colors"
cd $COLOR_PHOTO_PATH
ls | grep -E 'front|back' | while read line;do 
  cp $line $CHIP_COLOR_PATH
done
cd "/mnt/chip/"
tar czvfP color_photo.tar.gz $COLOR_PHOTO_PATH

你可能感兴趣的:(move)