This could be rewritten:
fname=`echo $fname|sed 's/~/\/home\/ben/g'`
Perhaps:
fname=`echo $fname|perl -pe "s#~#$HOME#g"`
In reply to Re: Playing with code found on Perlmonks
by skx
in thread Playing with code found on Perlmonks
by oko1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |