I pipe stderr from grep to /dev/null a lot because I do this sort of thing a lot. Is there a shortcut?

`grep myString * 2>/dev/null`
Follow

@fluffy

`cmd 2>&-` might work, but I don't think it has the same semantics. (Close the fd vs redirecting it into the void.)

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.