Bash cheatsheet: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
m (hat „Bash“ nach „Bash cheatsheet“ verschoben: Einheitlichkeit) |
No edit summary |
||
Line 11: | Line 11: | ||
</pre> | </pre> | ||
[[Kategorie: | [[Kategorie:Bash]] |
Revision as of 07:46, 25 May 2012
Nützliche Variablenersetzungen
dirname
$ myself=/usr/bin/blafasel ; echo ${myself%/*} /usr/bin
basename
$ myself=/usr/bin/blafasel ; echo ${myself##*/} blafasel