‘|:’ is built-in pipe-based data sink and faster than ‘>/dev/null’. For instance,
echo "Hello World!" >/dev/null
can be rewritten as
echo "Hello World!" |:
echo "Hello World!" >/dev/null
can be rewritten as
echo "Hello World!" |:
This blog provides some ready-made tips, tricks, tweaks & interview questions-answers on C, C++, Perl, Shell Scripting and UNIX Commands.