linux fedora 24 使用 sed 获取 指定行

    xiaoxiao2021-08-29  58

    output

    linux fedora 24 使用 sed 获取 指定行

    input

    baidu cat 指定行 https://zhidao.baidu.com/question/2203297154977046828.html 鸟哥-鸟哥的Linux私房菜 基础学习篇 3ed|258 $表示最后一行

    algo

    例如,显示第2行到结束行。

    echo -e '1\n2\n3' > t sed -n '2,$p' t -n, --quiet, --silent suppress automatic printing of pattern space ref man sed
    转载请注明原文地址: https://ju.6miu.com/read-677326.html

    最新回复(0)