Unix/Linux Go Back    

Programming Post questions about C, C++, Java, SQL, and other programming languages here.

Basename for directory variable



Thread Tools Search this Thread Display Modes
Old Unix and Linux 12-07-2016
robertkwild robertkwild is offline
Registered User
Join Date: Apr 2016
Last Activity: 12 April 2017, 3:55 PM EDT
Posts: 54
Thanks: 5
Thanked 3 Times in 2 Posts
Yes, that's worked, I moved it under my -

read -e dir

I'm using the command I was before

base=$(basename $dir)

Thanks Robin

Moderator's Comments:
Basename for directory variable Please use CODE tags as required by forum rules!

Last edited by RudiC; 12-07-2016 at 01:00 PM.. Reason: Added CODE tags.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
$(basename $0) abhi200389 Shell Programming and Scripting 1 12-25-2012 01:26 AM
basename venkatesht UNIX for Dummies Questions & Answers 2 03-31-2010 06:27 AM
basename $0 kripssmart Shell Programming and Scripting 4 05-12-2009 05:13 AM
Sed variable substitution when variable constructed of a directory path alrinno Shell Programming and Scripting 2 07-11-2008 02:24 PM
Setting basename and dirname variable to simply script. liketheshell Shell Programming and Scripting 1 09-12-2007 01:36 PM

All times are GMT -4. The time now is 02:02 PM.