Complete.Org: Mailing Lists: Archives: discussion: April 1999:
[aclug-L] opposite of basename?
Home

[aclug-L] opposite of basename?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "'aclug-L@xxxxxxxxxxxx'" <aclug-L@xxxxxxxxxxxx>
Subject: [aclug-L] opposite of basename?
From: "Bates, Rod" <Rod.Bates@xxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Apr 1999 14:53:26 -0500
Reply-to: aclug-L@xxxxxxxxxxxx

Is there a command which does the opposite of basename,
i.e strips off the simple file name at the right end and
returns the path leading to it?  

I need to write a script which refers to some files relative
to where the script is located.  Applying such a function
to $0 would do it.  Suggestions on other approaches are also
welcome 

Rodney Bates 

[Prev in Thread] Current Thread [Next in Thread]