"Fossies" - the Fresh Open Source Software Archive

Member "links-1.03/intl/mangle-unprintable" (18 Oct 2011, 161 Bytes) of archive /linux/www/links-1.03.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "mangle-unprintable": 2.8_vs_1.03.

    1 #!/bin/sh
    2 i=128
    3 a="sed"
    4 while [ $i -lt 256 ]; do
    5     oct="`printf %o $i`"
    6     char="`printf \\\\$oct`"
    7     a="$a -e 's/$char/\\\\$oct/g'"
    8     i=`expr $i + 1`
    9 done
   10 eval "$a"