使用道具 举报
#!/bin/sh #script name: mvfile.sh #more file to one dir if [[ $# = 2 && -d $2 ]];then mv $1 $2 else echo "usage './scriptname YOURFILE(DIR) TARGETDIR'" fi
$./mvfile.sh /home/wr/lyp2/1 /home/wr/lyp1
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
GMT+8, 2026-1-19 00:18 , Processed in 0.038396 second(s), 16 queries .
© 2001-2026 Discuz! Team. Powered by Discuz! X3.5.