On Nov 11, 2005, at 2:12 pm, Peper wrote:

And one more thing, is there any smarter way to read one line of file then
head -n x file|tail -n 1 ?

Surely so:

        $ echo 'blahpath="/path/to/blahdir"' >> configfile
        $ echo $blahpath
        
        $ source configfile
        $ echo $blahpath
        /path/to/blahdir
        $ blahpath=$blahpath/foo
        $ echo $blahpath
        /path/to/blahdir/foo
        $

Stroller.

--
gentoo-user@gentoo.org mailing list

Reply via email to