Last Friday of each month: Difference between revisions
Content added Content deleted
(shell code) |
("shell bourne" -> "UNIX Shell") |
||
Line 360: | Line 360: | ||
end</lang> |
end</lang> |
||
=={{header| |
=={{header|Tcl}}== |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
<lang sh> |
|||
#!/bin/sh |
<lang bash>#!/bin/sh |
||
# Free code, no limit work |
# Free code, no limit work |
||
Line 432: | Line 457: | ||
# main |
# main |
||
last_fridays ${1:-2012} |
last_fridays ${1:-2012}</lang> |
||
</lang> |
|||
Sample execution: |
Sample execution: |
||
<pre> |
<pre> |
||
lastfridays 2012 |
lastfridays 2012 |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
2012-01-27 |
2012-01-27 |
||
2012-02-24 |
2012-02-24 |