3 ms·
. #!/bin/sh ins(){ sed -i -e $2r/dev/stdin -e1N $1 ;} # 084.l links -dump https://news.ycombinator.com/item?id=39051760 \ |sed 's/ *$//;s/
by 1vuio0pswjnm7 3y ago
.
#!/bin/sh
ins(){ sed -i -e $2r/dev/stdin -e1N $1 ;}
# 084.l
links -dump https://news.ycombinator.com/item?id=39051760 \
|sed 's/ *$//;s/[ ]\{7\}//;1,5d;113,$d' > 084.l
# aol, bing, brave
links -dump https://news.ycombinator.com/item?id=39051797 \
|sed 's/ *$//;s/[ ]\{7\}//;1,6d;97,$d' > 84.txt
# duckduckgo, ecosia
links -dump https://news.ycombinator.com/item?id=39051851 \
|sed 's/ *$//;s/[ ]\{7\}//;1,4d;59,$d' >> 84.txt
# crossref
links -dump https://news.ycombinator.com/item?id=39051834 \
|sed 's/ *$//;s/[ ]\{7\}//;1,5d;111,$d' >> 84.txt
# f-droid, github, google
links -dump https://news.ycombinator.com/item?id=39051867 \
|sed 's/ *$//;s/[ ]\{7\}//;1,6d;87,$d' >> 84.txt
# google news, marginalia, mojeek
links -dump https://news.ycombinator.com/item?id=39051893 \
|sed 's/ *$//;s/[ ]\{7\}//;1,6d;95,$d' >> 84.txt
# mwmbl, pubmed, qwant
links -dump https://news.ycombinator.com/item?id=39051911 \
|sed 's/ *$//;s/[ ]\{7\}//;1,5d;100,$d' >> 84.txt
# scholar, sec, startpage
links -dump https://news.ycombinator.com/item?id=39051942 \
|sed 's/ *$//;s/[ ]\{7\}//;1,5d;82,$d' >> 84.txt
# tailsx, wiby, wikipedia
links -dump https://news.ycombinator.com/item?id=39051963 \
|sed 's/ *$//;s/[ ]\{7\}//;1,6d;78,$d' >> 84.txt
# yahoo, yandex
links -dump https://news.ycombinator.com/item?id=39051996 \
|sed 's/ *$//;s/[ ]\{7\}//;1,5d;78,$d' >> 84.txt
# youtube
links -dump https://news.ycombinator.com/item?id=39052006 \
|sed 's/ *$//;s/[ ]\{7\}//;1,5d;88,$d' >> 84.txt
sed '785,810d;708,731d;631,659d;558,588d;485,512d;394,417d;
305,330d;207,250d;124,144d;67,91d;' 84.txt |ins 084.l 85
flex -8Cem 084.l
if test $(wc -l < lex.yy.c) -gt 32767;then # exceeds c89 limit, remove pedantic
cc -O3 -std=c89 -W -Wall -I$HOME -pipe lex.yy.c -static -o yy084
else
cc -O3 -std=c89 -W -Wall -pedantic -I$HOME -pipe lex.yy.c -static -o yy084
fi
strip -s yy084
sed '732,793d;714,715d;660,712d;589,637d;513,563d;418,491d;
330,400d;250,312d;145,213d;92,130d;2,70d' 84.txt > 84.sh