openbsd-webzine/issues/issue-3/50_TIPS.html

11 lines
280 B
HTML

<article id="tips">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Shell tips</h2>
<p>
Display the current month calendar with current day highlited:
<pre>now=$(date +%d); cal -m |\
sed "s/ $now /$(printf " \033[1;30;44m$now\033[0m ")/"</pre>
</p>
</article>