#!/bin/bash
file=/usr/ras/$1
if [ -f $file ]
then
echo "$file is exist"
exit 0
else
echo "$file is not exist"
if [ -f /home/cie/pkg/ras/$1 ]
then
echo "/home/cie/pkg/ras/$1 is exist"
cp /home/cie/pkg/ras/$1 /usr/ras/
else
echo "/home/cie/pkg/ras/$1 is not exist"
exit 2
fi
exit 1
fi
第一次写shell
最新推荐文章于 2024-09-12 22:54:45 发布