This based on a very useful tip in Darren Patterson’s blog, something I was looking for for quite a while: When you want to filter out useless error from stderr messages, while keeping your stdout channel unaffected (e.g., to get rid of the annoying ‘socket ignored’ warnings issued by old version of GNU tar), bash is your friend:
tar <my_options> 2> >(grep -v 'socket ignored' >&2)
