You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 11, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 11, 2019. It is now read-only.
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?
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.
@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?
Activity
ole-tange commentedon Oct 1, 2018
With GNU Parallel try:
parallel --tty grep --color=auto -H foo ::: *It should keep the highlighting and the file name.
hongxuchen commentedon Oct 1, 2018
@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?hongxuchen commentedon Oct 1, 2018
@ole-tange Sorry I just noticed you're the author of GNU parallel 😺