Oh - I hadn't realized we were golfing. In Unix, as in Perl, TMTOWTDI.
# Bourne shell and derivatives fname=`eval echo $fname` # Modern shells (e.g., Bash) fname=${fname/\~/$HOME}
Your turn, m'sieu? :)
-- Human history becomes more and more a race between education and catastrophe. -- HG Wells
In reply to Re^2: Playing with code found on Perlmonks
by oko1
in thread Playing with code found on Perlmonks
by oko1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |