Bash cheatsheet

From Lolly's Wiki
Revision as of 07:45, 25 May 2012 by Lollypop (talk | contribs) (hat „Bash“ nach „Bash cheatsheet“ verschoben: Einheitlichkeit)
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:KnowHow