Bash cheatsheet

From Lolly's Wiki
Revision as of 07:46, 25 May 2012 by Lollypop (talk | contribs)
Jump to navigationJump to search

Nützliche Variablenersetzungen

dirname

$ myself=/usr/bin/blafasel ; echo ${myself%/*} 
/usr/bin

basename

$ myself=/usr/bin/blafasel ; echo ${myself##*/} 
blafasel

Kategorie:Bash