CLI

From AdminWiki

Revision as of 16:46, 24 May 2006 by Robe (Talk | contribs)
Jump to: navigation, search

Common solutions to common problems when working with CLI tools.

Problems and Solutions

Get the last element from a path

if you have /path/sub/over/unter/filename.txt and you want to get the filename.txt basename does the trick:

 echo /path/sub/over/unter/filename.txt | basename
Personal tools