CLI
From AdminWiki
(Difference between revisions)
(command line interface examples) |
(→Get the last element from a cut situation) |
||
Line 6: | Line 6: | ||
== Problems and Solutions == | == Problems and Solutions == | ||
- | === Get the last element from a | + | === Get the last element from a path === |
if you have /path/sub/over/unter/filename.txt and you want to get the filename.txt then do this: | if you have /path/sub/over/unter/filename.txt and you want to get the filename.txt then do this: | ||
- | echo /path/sub/over/unter/filename.txt | | + | echo /path/sub/over/unter/filename.txt | basename |
- | + | ||
- | + | ||
- | + |
Revision as of 16:25, 24 May 2006
CLI
The Command Line Interface is the powerway to talk to your system
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 then do this:
echo /path/sub/over/unter/filename.txt | basename