1 2 3 4 5 6 7 8 9
# self-reproducing script (except for these comment lines -- remove them) # i got this from the ksh93 faq: # http://www.kornshell.com/doc/faq.html # n=" " q="'" x="cat <<-!" y=! z='n="$n" q="$q" x="$x" y=$y z=$q$z$q$n$x$n$z$n$y' cat <<-! n="$n" q="$q" x="$x" y=$y z=$q$z$q$n$x$n$z$n$yb !