in reply to Playing with code found on Perlmonks
This could be rewritten:
fname=`echo $fname|sed 's/~/\/home\/ben/g'`
Perhaps:
fname=`echo $fname|perl -pe "s#~#$HOME#g"`
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Playing with code found on Perlmonks
by oko1 (Deacon) on Apr 17, 2008 at 00:01 UTC |