On 0, Squirrel <jsli@ict.ac.cn> wrote:
> apt_dest()
> {
> local m="$3"
> m="debootstrap.invalid"
> printf "$APTSTATE/lists/"
> echo "${m}_$4"|sed 's/\//_/g'
> }
>
> apt_dest rel woody file:/instmnt dists/woody/Release
>
>
> what's the meaning of the above program,especial of "echo "${m}_$4"|sed
> 's/\//_/g"?
sed 's/\//_/g' means replace all occurences of '/' with '_'. So in
the invocation above the result would be
'debootstrap.invalid_dists_woody_Release'.
Tom
--
Tom Cook
Information Technology Services, The University of Adelaide
"If it weren't for electricity we'd all be watching television by candlelight."
- George Gobol
Get my GPG public key: https://pinky.its.adelaide.edu.au/~tkcook/tom.cook-at-adelaide.edu.au
Attachment:
pgpPe1Yn3eTSR.pgp
Description: PGP signature