Skip to content

Add field support (a la Perl) #366

@tnelson-doghouse

Description

@tnelson-doghouse

ls -laF | perl -ane 'if($F[2] =~ /tnelson/){print}'

If there was a --field 2 option, then I could do this as:

ls -laF | ack --field 2 tnelson

You might also want to pair this with -F / --separator (as per perl's -F)

HTH,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions