Re: [dev] [PATCH] sbase: add cut

From: Paul Onyschuk <blink_AT_bojary.koba.pl>
Date: Thu, 2 Aug 2012 13:08:01 +0200

On Wed, 1 Aug 2012 22:49:05 -0400, Steven Blatchford wrote:
>
> I wanted to know how you use awk to get the same output as
> "cut -d' ' -f3-"
>

This can be done on multiple ways in awk, here is one example (a bit
extreme):

awk '{$1=$2=""; $0=substr($0, 3)}1'

-- 
Paul Onyschuk
Received on Thu Aug 02 2012 - 13:08:01 CEST

This archive was generated by hypermail 2.3.0 : Thu Aug 02 2012 - 13:12:03 CEST