CLI
From AdminWiki
(Difference between revisions)
m (→CLI) |
m |
||
Line 1: | Line 1: | ||
Common solutions to common problems. | Common solutions to common problems. | ||
- | |||
== Problems and Solutions == | == Problems and Solutions == |
Revision as of 16:45, 24 May 2006
Common solutions to common problems.
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