小编rai*_*r11的帖子

解压缩文件时出现额外字节错误

当我输入时unzip ../founation-latest.zip,它输出:

警告 [../foundation-latest.zip]:开头或 zipfile 中的 248 个额外字节(无论如何都在尝试处理)

该文件为 138KB。它可以正确解压缩,但为什么会出现此错误?

zip

42
推荐指数
4
解决办法
5万
查看次数

如何cd进入多个目录?

我不确定我是否问对了,但这里是脚本:

#!/bin/sh
# foundation-setup.sh --- Gets the latest Zurb Foundation release
if test $1
then  
    mkdir $* 
    cd $* 
    wget -q http://foundation.zurb.com/cdn/releases/foundation-latest.zip
    unzip -q foundation-latest.zip
    rm foundation-latest.zip
else     
       echo 'Missing directory Argument!'
fi
Run Code Online (Sandbox Code Playgroud)

当我用 运行它时./foundation-setup.sh a b c,它可以工作,但它只解压缩到第一个目录参数。我认为这与cd $* . 顺便说一下,我是 Linux 和 Bash 的新手。

bash

3
推荐指数
1
解决办法
164
查看次数

标签 统计

bash ×1

zip ×1