#######################
list_files() {
cat <<EOF
etc/hosts
EOF
}
case "$1" in
cp1)
list_files | while read FILE DUMMY; do
cp1_file $S/"$FILE"
done
;;
cp2)
list_files | while read FILE REPLACEMENT; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
[ -f "$C/$S/$FILE" ] && cp2_file $S/"$FILE" "$R"
done
;;
esac
#######################
这段脚本什么意思?
牧羊人nacy
杨__羊羊