Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Corrections needed to post' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Corrections needed to post
Authored by: barrysharp on Sep 02, '02 03:31:15PM

The two examples given are in error (probably a typo).

The first example using basename should be

<b>
FULLPATH=/usr/bin/archibald
Filename=`basename $FULLPATH`
</b>

and second example using the Shell substitution should be

<b>
FULLPATH=/usr/bin/archibald
Filename="${FULLPATH##*/}"
</b>

Regards... Barry Sharp



[ Reply to This | # ]