Skip to content
This repository was archived by the owner on Jul 11, 2019. It is now read-only.
This repository was archived by the owner on Jul 11, 2019. It is now read-only.

GNU parallel -X equivalent parameter(s) #73

Open

Description

@hongxuchen

When using parallel with grep/ripgrep, without particular options, neither this parallel nor GNU parallel will display the file name (xargs works well). But GNU parallel has an -X that can solve this issue. How can I achieve with this parallel's command line?

2018-09-27-204342_1919x856_scrot

BTW, when using xargs with ripgrep, the matched patterns can still be highlighted automatically (--color=auto); while neither GNU parallel nor this parallel can keep the highlighting.

Activity

  1. ole-tange commented on Oct 1, 2018

    @ole-tange

    With GNU Parallel try:

    parallel --tty grep --color=auto -H foo ::: *

    It should keep the highlighting and the file name.

  2. hongxuchen commented on Oct 1, 2018

    @hongxuchen
    Author

    @ole-tange it works for GNU parallel (find -name "*.rs" | /usr/bin/parallel --tty grep --color=auto -H _init) in terms of coloring matched. Any idea for this Rust parallel command?

  3. hongxuchen commented on Oct 1, 2018

    @hongxuchen
    Author

    @ole-tange Sorry I just noticed you're the author of GNU parallel 😺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions