linux fedora 24 使用 awk 指定 分割符 截断 字符串 输出 指定 列

    xiaoxiao2021-09-23  104

    output

    linux fedora 24 使用 awk 指定 分割符 截断 字符串 输出 指定 列

    input

    鸟哥-鸟哥的Linux私房菜 基础学习篇 3ed|365

    algo

    例如

    echo -e '1\t2\t3'|awk '{FS="\t"}{print $2}' man awk SYNOPSIS gawk [ POSIX or GNU style options ] -f program-file [ -- ] file ... gawk [ POSIX or GNU style options ] [ -- ] program-text file ... FS The input field separator, a space by default. See Fields, above.
    转载请注明原文地址: https://ju.6miu.com/read-677815.html

    最新回复(0)