[plug] Shell stuff again

Brad Campbell brad at wasp.net.au
Mon May 10 14:19:12 WST 2004


G'day all..

<Sigh>
Check out this

        let x=`echo $i | wc -c`-1
        y=""
        while [ "$y" != "/" -a "$x" -ge 0 ] ; do
                y=`echo $i | cut -b $x`
                let x--
        done;
        let x=$x+2
        j=`echo $i | cut -b $x-`

vs

        j=`basename $i`

<slaps forehead>

Oh well, it was a learing experience I guess

Brad



More information about the plug mailing list