Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下工作
tar -pcvf base.tar input/myPacket/my2 --exclude-vcs input/myPacket/my3/*.bmp
当我的目录带有“输入文件”之类的空格时,我将路径包含在引号中,并且包含路径不适用于 *.bmp
tar -pcvf base.tar "input file/myPacket/my2" --exclude-vcs "input file/myPacket/my3/*.bmp"
谢谢,
试试这个:
tar -pcvf base.tar "input file/myPacket/my2" --exclude-vcs input*file/myPacket/my3/*.bmp
与其尝试与 UNIX 目录中的愚蠢空间作斗争,不如以最简单的方式解决它。