misc-code4

=Misc. scripts, code excerpts, and scraps - Page 4=

Read multi-line input from stdin into variable
code format="bash" myvar=`cat`

echo "$myvar"

code

Rosetta Stone for Unix
@http://bhami.com/rosetta.html

Editing Multiple files with Vi
@http://www.bo.infn.it/alice/alice-doc/mll-doc/linux/vi-ex/node27.html

How to pass a shell variable to a perl command
code format="bash" y="4"; export y z="yo"; export z

perl -p -i -e 's/$ENV{"y"}/$ENV{"z"}/' /tmp/x code