From AdminWiki

Revision as of 01:08, 24 May 2006 by Gullevek (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The Command Line Interface is the powerway to talk to your system

Problems and Solutions

Get the last element from a cut situation

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 | awk -F/ '{ printf("%s\n", $NF)}'

and it will return just filename.txt

--gullevek 03:08, 24 May 2006 (CEST)

Personal tools