I hate shell semantics sometimes

Without quoting this, the tweet:

  i;ll never be a real pig *sobs uncontrollably *

is interpreted _as if you'd typed that verbatim on the commandline_:

  i;ll never be a real pig *sobs uncontrollably dril dril.dat dril.html fortunes Makefile mkfortunes.sh README.md
This commit is contained in:
embr 2022-11-04 00:34:33 +01:00
parent b701f5d6ac
commit a84b476ff4
3 changed files with 764 additions and 764 deletions

1522
dril

File diff suppressed because it is too large Load diff

BIN
dril.dat

Binary file not shown.

View file

@ -13,7 +13,7 @@ lines=$(cat dril.html |\
total=$(echo -n "$lines" | wc -l)
at=1
while read tweet; do
echo $tweet | sed 's%<br />%\n%g'
echo "$tweet" | sed 's%<br />%\n%g'
echo " -- dril"
echo %