我现在正在写一个脚本,我想让它检查一个文件是否已经存在。如果该文件不存在,则不应执行任何操作。但是,如果文件确实存在,我希望出现'y‘或'n’(是或否)菜单。它应该会问“你想覆盖这个文件吗?”therestoreIf [ -f directorypathANDfilename ] ; then
read -p "A file with the same name exists, Overwrite it? Type
: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000在更远的路线上,它声称是state DOWN。这似乎与先前的信息相冲突。界面是向上还是向下?
在手册页面ip-link、ip和ip-address中,我找不到尖括号的含义。