#!/bin/bash read -p "Please input a file name" FILENAME if [ -c "$FILENAME" ];then cp $FILENAME /dev else echo "The $FILENAME is not a char device!!!" fi
时间: 2024-11-05 20:44:00
#!/bin/bash read -p "Please input a file name" FILENAME if [ -c "$FILENAME" ];then cp $FILENAME /dev else echo "The $FILENAME is not a char device!!!" fi