summary refs log tree commit diff homepage
path: root/2019/day04.sh
blob: 6cd264a219bab09c13df47615d507042b0b1ebcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
IFS=-
read min max
seq "$min" "$max" \
	| grep '^1*2*3*4*5*6*7*8*9*$' \
	| grep -E '00|11|22|33|44|55|66|77|88|99' \
	| wc -l
seq "$min" "$max" \
	| grep '^1*2*3*4*5*6*7*8*9*$' \
	| sed 's/.*/x&x/' \
	| grep -E '[^0]00[^0]|[^1]11[^1]|[^2]22[^2]|[^3]33[^3]|[^4]44[^4]|[^5]55[^5]|[^6]66[^6]|[^7]77[^7]|[^8]88[^8]|[^9]99[^9]' \
	| wc -l
-09-11 16:10:49 -0400'>2018-09-11Add /help equivalent to /manJune McEnroe 2018-09-11Don't render every PM as a pingJune McEnroe 2018-09-11Add urlOpenMatchJune McEnroe 2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe Ridiculous. 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe