How to print third column to last column?

前端 未结 19 2034
面向向阳花
面向向阳花 2020-11-28 18:44

I\'m trying to remove the first two columns (of which I\'m not interested in) from a DbgView log file. I can\'t seem to find an example that prints from column 3 onwards unt

19条回答
  •  醉梦人生
    2020-11-28 18:57

    What about following line:

    awk '{$1=$2=$3=""; print}' file

    Based on @ghostdog74 suggestion. Mine should behave better when you filter lines, i.e.:

    awk '/^exim4-config/ {$1=""; print }' file

提交回复
热议问题