Learn about Linux
Download Linux
Get Linux help
Get special offers on:
Linux Application Dev Programming Software
Email:
pwd | awk -F / '{ print $NF }' pwd | sed 's,.*/,,'
#
Return to Four ways to extract the current directory name
© Copyright 1999-2008 - SourceForge, Inc., All Rights Reserved About Linux.com - Privacy Statement - Terms of Use - Advertise - Trademark - Ask Linux Questions - Write for Us - RSS Feed ThinkGeek - Slashdot - SourceForge.net - freshmeat - Surveys - Jobs
Four ways to extract the current directory name
Posted by: Anonymous [ip: 127.0.0.1] on November 06, 2007 09:31 AMSimpler solutions are:
#