From being to becoming

“Suppress previous identity (and ignore errors)” way:

echo being >/dev/null | echo becoming

“Simple (and too obvious)” way:

echo being | sed 's/\(..\)/\1com/'

Sometimes becoming can be complex (and machine dependant):

echo being | sed "s/\(..\)/\1`evil 2>&1 | sed 's/............\(...\).*/\1/'`/"

Becoming can be even more complex (complexier?), and fail in various subtle and unpredicted ways:

echo being | sed "s/\(..\)/\1`\`echo $[RANDOM / 100]| tr 1-90 cptsdrameg\` 2>&1 | tail -1 | sed 's/...........\(...\).*/\1/'`/"

Slighty modified version, which will even “hang” sometimes(1 in 50.000), due to very small(10-9) reasons:

echo being | sed "s/\(..\)/\1`\`echo $[RANDOM / 10] | tr 0-9 etpsoairmn\` 2>&1 | tail -1 | sed 's/...........\(...\).*/\1/'`/"

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>