Extracting the linked to file name

Anthony Wesley Anthony.Wesley at prometheus.com.au
Wed Nov 14 12:26:42 EST 2001


David Clarke wrote:
> 
> On Wed, 14 Nov 2001, Me wrote:
> >
> > filename=$(basename `ls -la /bin/mt | awk '{print $11}'`)
>                               ^^^^^^^ should have been linkname, I was
> just testing it with mt.
> 


Try it when the link points to a directory :-)

It's not quite right

cheers, Anthony




More information about the linux mailing list