Four ways to extract the current directory name

Posted by Scott_Ruecker on Nov 6, 2007 10:16 AM EDT
Linux.com; By Sergio Gonzalez Duran
Mail this story
Print this story

When you're programming a shell script, you often only need the current directory name, not the whole path that the pwd command returns. Here are four ways you can extract only the current directory.

Full Story

  Nav
» Read more about: Story Type: News Story; Groups: Linux

« Return to the newswire homepage

Subject Topic Starter Replies Views Last Post
this also works moopst 0 1,064 Nov 6, 2007 6:49 PM

You cannot post until you login.