#FunWithScripting

2025-06-19

Finding the second last Tuesday in July:

date -d $( for n in $( seq 1 7 ) ; do date -d "August "$n +"%Y%m%d %a" ; done | grep Tue | sed "s/ .*//" )" - 14 days"

Obvious, really.

#bash_scripting #Linux #FunWithScripting

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst