Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Some nerdery

32 views
Skip to first unread message

Lewis

unread,
Nov 4, 2019, 4:44:28 AM11/4/19
to
Don't know id this will be of interest to anyone else, but I wanted to
set the dates on all my discword files based on the publication date.

#v+
touch -t 198301010101 *Discworld\ 01*
touch -t 198601010102 *Discworld\ 02*
touch -t 198701010103 *Discworld\ 03*
touch -t 198702010104 *Discworld\ 04*
touch -t 198801010105 *Discworld\ 05*
touch -t 198802010106 *Discworld\ 06*
touch -t 198901010107 *Discworld\ 07*
touch -t 198902010108 *Discworld\ 08*
touch -t 199001010109 *Discworld\ 09*
touch -t 199002010110 *Discworld\ 10*
touch -t 199101010111 *Discworld\ 11*
touch -t 199102010112 *Discworld\ 12*
touch -t 199201010113 *Discworld\ 13*
touch -t 199202010114 *Discworld\ 14*
touch -t 199301010115 *Discworld\ 15*
touch -t 199401010116 *Discworld\ 16*
touch -t 199402010117 *Discworld\ 17*
touch -t 199501010118 *Discworld\ 18*
touch -t 199601010119 *Discworld\ 19*
touch -t 199602010120 *Discworld\ 20*
touch -t 199701010121 *Discworld\ 21*
touch -t 199801010122 *Discworld\ 22*
touch -t 199802010123 *Discworld\ 23*
touch -t 199901010124 *Discworld\ 24*
touch -t 200001010125 *Discworld\ 25*
touch -t 200101010126 *Discworld\ 26*
touch -t 200102010127 *Discworld\ 27*
touch -t 200103010128 *Discworld\ 28*
touch -t 200201010129 *Discworld\ 29*
touch -t 200301010130 *Discworld\ 30*
touch -t 200302010131 *Discworld\ 31*
touch -t 200401010132 *Discworld\ 32*
touch -t 200402010133 *Discworld\ 33*
touch -t 200501010134 *Discworld\ 34*
touch -t 200601010135 *Discworld\ 35*
touch -t 200701010136 *Discworld\ 36*
touch -t 200901010137 *Discworld\ 37*
touch -t 201001010138 *Discworld\ 38*
touch -t 201101010139 *Discworld\ 39*
touch -t 201301010140 *Discworld\ 40*
touch -t 201501010141 *Discworld\ 41*
#v-

I didn't care about the exact date, just preserving the right year and
the right order within the year, so everything is dated Jan 1 Feb 1 or
Mar 1. For programmatic nerdery purposes I used the second field as an
index.


--
'Life's like a beach. And then you die.' --Small Gods
0 new messages