[ILUGC] Re: GNU/Linux commands - basename
- From: Arun Khan <knura9@xxxxxxxxx>
- To: ILUG-Chennai <ilugc@xxxxxxxxxxxxx>
- Date: Wed, 21 Sep 2016 12:29:13 +0400
On Tue, Sep 20, 2016 at 9:40 AM, Balasubramaniam Natarajan
Good one, Dhanasekar to remove suffix we need to give what needs to be
removed like so.
$ touch bala.txt
$ echo "Hello" > bala.txt
$ basename /tmp/bala.txt
$ basename /tmp/bala.txt txt
$ basename /tmp/bala.txt .txt
Good examples clarifying the suffix removal. The OP lacked this.
You are a seasoned contributor to this list and used to follow the
posting guidelines like not top posting.
-- Arun Khan
ILUGC List: http://www.freelists.org/list/ilugc
ILUGC Web: http://ilugc.in/
Other related posts: