Shell Goodies

Parsing Path Components

echo $(basename $(pwd)) -- from Chef. Will return 'gruizade' if run under directory /home/gruizade

echo "`pwd`/"* - from me. Will return full path to all files in a directory (one per line)

-- SeanNewton - 22 Apr 2011

Topic revision: r1 - 2011-04-22 - SeanNewton
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback