Thread (5 messages) 5 messages, 3 authors, 2016-06-24

Re: [PATCH v3 1/4] t5000: test tar files that overflow ustar headers

flat view

From: Eric Sunshine <hidden>
Date: 2016-06-24 20:59:04

On Fri, Jun 24, 2016 at 3:07 PM, Jeff King [off-list ref] wrote:
On Fri, Jun 24, 2016 at 11:56:19AM -0700, Junio C Hamano wrote:
quoted
Jeff King [off-list ref] writes:
quoted
+tar_info () {
+   "$TAR" tvf "$1" | awk '{print $3 " " $4}' | cut -d- -f1
+}
quoted
Seeing an awk piped into cut always makes me want to suggest a
single sed/awk/perl invocation.
I want the auto-splitting of awk, but then to auto-split the result
using a different delimiter. Is there a not-painful way to do that in
awk?
The awk split() function is POSIX and accepts an optional separator argument.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help