Skip to content

Instantly share code, notes, and snippets.

@navicore
Created November 10, 2022 13:41
Show Gist options
  • Save navicore/e85344475eb97b49623309c31500d0d0 to your computer and use it in GitHub Desktop.
Save navicore/e85344475eb97b49623309c31500d0d0 to your computer and use it in GitHub Desktop.
how to grep stderr or how to put stderr into stdin
cargo test 2>&1 >/dev/null | grep "warning"
@navicore
Copy link
Author

I can never remember this and when I try to look it up I find discussions of named pipes and anonymous pipes and a relearn I still don't have a useful mental model of 'nix after 3+ decades of daily use :)

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