mimic awk field notation

Issue #7 resolved
Former user created an issue

cut(@,"\t",2) is nice but less than $3 in awk

tab could propose a separator (-s) argument, instead of asking for each cut.

__

(and please move from recaptcha, it is so slow to validate)

Comments (4)

  1. Ivan Tkatchev repo owner
    • changed status to open

    Good idea, but should be made more generic.

    E.g.: def $ cut(@~0, "\t", @~1) and then $0 is just syntactic sugar for $(@, 0).

    ($ can be predefined by default.)

  2. Log in to comment