Last Friday of each month: Difference between revisions

m ("each months" => "each month", because the word "each" implies a singular noun.)
Line 397:
echo $1-$m-`ncal $m $1 | grep Fr | sed 's/.* \([0-9]\)/\1/'`
done</lang>
 
Using <code>date --date</code> from GNU date??? This code is not portable.
 
<lang bash>#!/bin/sh
Anonymous user