Linux.com

Four ways to extract the current directory name

Posted by: Anonymous [ip: 209.30.37.151] on November 06, 2007 08:59 PM
If I were needing the name of the current directory (and I have never needed it so far, because as someone else said, '.' is always right) then I would use the parameter substitution feature of bash. All the rest are going to be starting at least 1 (if not several) new processes.

#

Return to Four ways to extract the current directory name