Romuald DELAVERGNE wrote:
> 
> On 2001.11.08 23:44 Michael D. Schleif wrote:
> 
> You can use 'basename' command to remove complete path.

Are we trying to optimize the thrown together?  How about one (1) line
for both ???

        echo $file | sed 's!^.*/!!;s!\..*$!!'

-- 

Best Regards,

mds
mds resource
888.250.3987

Dare to fix things before they break . . .

Our capacity for understanding is inversely proportional to how much we
think we know.  The more I know, the more I know I don't know . . .

Reply via email to