बैश, सेड: 228 223 197 (२४२ - 24०) = १ .२
c=${5:-=};R=$c;L=;for f in r l;do
e="sed -e ";$e"$ d;s/$\| */ \n/g" $1>m
o=1;for w in `$e"$ p;d" $1`;do
$e"$o,/^$w /s/^$w /$L$w$R /" m>n;o="/$c/"
cp n m;done;tr -d \\n<n|fold -sw${2:-35}|$e"s/$c/ /g">$f
L=$c;R=;done;pr -tmw${3:-80} ${4:-l r}
यदि स्क्रिप्ट "स्टीरियो" नामक एक निष्पादन योग्य फ़ाइल में है, तो टाइप करें
stereo file.in [column_width [page_width ["r l"]]]
column_width एक संख्या है; 25-45 काम करेगा, डिफ़ॉल्ट 35 है।
page_width एक संख्या है, जिसे कॉलम_ बैंडविड्थ के बारे में दो बार होना चाहिए, डिफ़ॉल्ट 80 है
क्रॉस-आइडेड देखने के लिए, "r l" को 4 वें तर्क के रूप में उपयोग करें। डिफ़ॉल्ट "एल आर" है जो समानांतर देखने के लिए सेट है।
संपादित करें: फ़ाइल को प्रति पंक्ति एक शब्द में विभाजित करने के लिए फिर से लिखना, फिर अंत में फिर से इकट्ठा करें। नोट: अपने स्वयं के उपयोग के लिए "=" संकेत रखता है। इनपुट फ़ाइल में कोई भी "=" संकेत रिक्त हो जाएंगे।
EDIT: यदि आपके संदेश में "=" संकेत हैं, तो आप स्क्रिप्ट का उपयोग करने के लिए 5 वें पैरामीटर के रूप में आपूर्ति करके एक और प्रतीक चुन सकते हैं।
उदाहरण
इनपुट: शाकाहार
I invented vegetarianism. It is a diet involving no meat, just
vegetables. It is also common in cows - they are awesome.
vegetarianism. is awesome.
परिणाम
./stereo शाकाहार .xt 32 72 "l r": | विस्तार (अपने आंतरिक काम करने के प्रतीक के लिए बृहदान्त्र का उपयोग करके)
I invented vegetarianism. It I invented vegetarianism. It
is a diet involving no meat, is a diet involving no meat,
just vegetables. It is also just vegetables. It is also
common in cows - they are common in cows - they are
awesome. awesome.
./stereo washton.txt 35 75 "l r" | का विस्तार करें
In a little district west of In a little district west of
Washington Square the streets Washington Square the streets
have run crazy and broken have run crazy and broken
themselves into small strips themselves into small strips
called 'places'. These 'places' called 'places'. These 'places'
make strange angles and curves. make strange angles and curves.
One Street crosses itself a time One Street crosses itself a time
or two. An artist once discovered or two. An artist once discovered
a valuable possibility in this a valuable possibility in this
street. Suppose a collector with a street. Suppose a collector with a
bill for paints, paper and canvas bill for paints, paper and canvas
should, in traversing this route, should, in traversing this route,
suddenly meet himself coming suddenly meet himself coming
back, without a cent having been back, without a cent having been
paid on account! paid on account!
"विस्तार करना" आवश्यक नहीं है लेकिन जब आउटपुट को 4 स्थानों पर शिफ्ट किया जाता है तो TAB गलत तरीके से नियंत्रित हो जाते हैं। इसे 7 बाइट की लागत से स्क्रिप्ट में डाला जा सकता है।
ImageMagick भिन्नता
टेक्स्ट-टू-इमेज ImageMagick कमांड के साथ अंतिम पंक्ति को बदलना:
c=${6:-=};R=$c;L=;for f in r l;do
e="sed -e ";$e"$ d;s/$\| */ \n/g" $1>m
o=1;for w in `$e"$ p;d" $1`;do
$e"$o,/^$w /s/^$w /$L$w$R /" m>n;o="/$c/"
cp n m;done;tr -d \\n<n|fold -sw${2:-35}|$e"s/$c/ /g">$f
L=$c;R=;done;
convert -border 10x30 label:@${4:-l} label:@${5:-r} +append show:
इस एक में, "आर" और "एल" क्रॉस-आइडेड बनाम समानांतर देखने के लिए अलग-अलग तर्क हैं:
./im_stereo शाकाहार .xt 40 80 lr =

(स्रोत: simplesystems.org )
संपादित 3: जोड़ा गया ImageMagick भिन्नता।