Galdor has asked for the wisdom of the Perl Monks concerning the following question:
ie loose the first three columns and print the rest? (note I use this to wrangle my history file - HISTTIMEFORMAT="%F %T "). (Found "better" Perl one-liners for all awk commans so far but not this one). PS - the awk solution has an annoying first three spaces on each line - bonus would be to get rid of that too.awk '{ $1=$2=$3=""; print $0 }'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Succint Perl version of Awk
by eyepopslikeamosquito (Archbishop) on May 30, 2023 at 06:32 UTC | |
by Galdor (Sexton) on May 30, 2023 at 06:38 UTC | |
|
Re: Succint Perl version of Awk
by choroba (Cardinal) on May 30, 2023 at 08:03 UTC | |
by ikegami (Patriarch) on May 31, 2023 at 01:01 UTC | |
by Galdor (Sexton) on May 30, 2023 at 10:14 UTC | |
|
Re: Succint Perl version of Awk
by jwkrahn (Abbot) on May 30, 2023 at 06:13 UTC | |
by Galdor (Sexton) on May 30, 2023 at 06:41 UTC | |
|
Re: Succint Perl version of Awk
by kcott (Archbishop) on May 30, 2023 at 14:12 UTC | |
|
Re: Succint Perl version of Awk
by Utilitarian (Vicar) on May 30, 2023 at 11:27 UTC |