Comments on: "cat life" >> life http://japanlifeandreligion.com/2008/03/07/cat-life-life/ My life as a father, Buddhist and Japanophile. Sat, 11 Jun 2011 01:53:14 +0000 hourly 1 http://wordpress.com/ By: thrig http://japanlifeandreligion.com/2008/03/07/cat-life-life/#comment-1767 thrig Sat, 08 Mar 2008 17:13:05 +0000 http://nihonshukyo.wordpress.com/?p=62#comment-1767 True is an additional exec in olden versions of shells, though is built-in to ZSH and other shells these days (and does document the code better). The cat from /dev/random will never end, and could be appended directly to life instead of life.tmp. True is an additional exec in olden versions of shells, though is built-in to ZSH and other shells these days (and does document the code better). The cat from /dev/random will never end, and could be appended directly to life instead of life.tmp.

]]>
By: Gerald Ford http://japanlifeandreligion.com/2008/03/07/cat-life-life/#comment-1766 Gerald Ford Fri, 07 Mar 2008 19:47:36 +0000 http://nihonshukyo.wordpress.com/?p=62#comment-1766 Hi Peter, Excellent suggestions! I revised my "script" as follows: $ while [[ true ]]; do > cat /dev/random >> life.tmp; > done; Though, /dev/random should probably be replaced with /dev/karma or something. ;) P.S. Welcome to the L8B, or the new one at least. Hi Peter,

Excellent suggestions! I revised my “script” as follows:

$ while [[ true ]]; do
> cat /dev/random >> life.tmp;
> done;

Though, /dev/random should probably be replaced with /dev/karma or something. ;)

P.S. Welcome to the L8B, or the new one at least.

]]>
By: Peter http://japanlifeandreligion.com/2008/03/07/cat-life-life/#comment-1765 Peter Fri, 07 Mar 2008 19:28:18 +0000 http://nihonshukyo.wordpress.com/?p=62#comment-1765 Sometimes it seems the second line could be cat /dev/random >> life.tmp; other times it's echo namuamidabu >> life.tmp; Anyway, I always liked the unix command true(1) From the man page: 'true - do nothing, successfully' :-) Sometimes it seems the second line could be

cat /dev/random >> life.tmp;

other times it’s

echo namuamidabu >> life.tmp;

Anyway, I always liked the unix command true(1)
From the man page: ‘true – do nothing, successfully’
:-)

]]>