Hallo,
Huhu,
kann ich Dir das script auch schicken, sind nur 9 Zeilen.
was passiert, wenn man das Script vorher noch durch ‚tac‘
piped? erkennt es, daß ‚tac‘ eigentlich ein umgekehrtes ‚cat‘
ist oder läuft es umgekehrt gegen die Wand?
Nun, es scheint so. Zumindest sieht das script so aus, als waere es gegen eine Wand gelaufen:
frank@zion [~] $ ./foo.sh `tac foo.sh`
hs/nib/!# `1 `\1 - `\\\c- cw| @$ ohce`\\\ rpxe`\ qes` ni i rof od "`i$b- tuc| "\@$"\ ohce`" n- ohce enod ohce
frank@zion [~] $
ROT13 fuer Arme, pretty funny. Aber auch nur, weil die shell die newlines rauswirft, damit kann es nicht so recht umgehen (trotzdem lustig):
frank@zion [~] $ ./foo.sh "shell
\> script"
t
pl
il
re
ch
ss
frank@zion [~] $ ./foo.sh "`tac foo.sh`" |wc -l
227
frank@zion [~] $
227 Zeilen Kauderwelsch. Hm, fehlen irgendwo ein paar ticks…
Amuesierten
Gruss vom Frank.