小编Mah*_*lah的帖子

何时使用换行符,何时不使用?

我一直在阅读“The Linux command line book”,我遇到了这个行继续符,我很困惑为什么我们用这个 find 命令使用它:

find playground \
    \( \
        -type f \
        -not -perm 0600 \
        -exec chmod 0600 {} \; \
    \) \
    -or \
    \(
        other options...
    \)
Run Code Online (Sandbox Code Playgroud)

以及为什么我们没有在这个 if 语句中使用它:

if [ $x -eq 5 ]; then 
    echo "x equals 5."
else
    echo "x does not equal 5."
fi
Run Code Online (Sandbox Code Playgroud)

shell-script

0
推荐指数
1
解决办法
762
查看次数

标签 统计

shell-script ×1