misc:code_snippets:shell
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| misc:code_snippets:shell [2017/08/25 20:13] – check_modules.sh hinzugefügt sascha | misc:code_snippets:shell [2025/11/22 09:10] (current) – Einzeiler für Basispfad des ausgeführten Skripts sascha | ||
|---|---|---|---|
| Line 36: | Line 36: | ||
| cd - | cd - | ||
| + | |||
| + | ==== Basispfad des ausgeführten Skripts ermitteln ==== | ||
| + | |||
| + | DIR=$( cd -- "$( dirname -- " | ||
| + | |||
| + | Folgt auch Symlinks und funktioniert, | ||
| ==== Formatierung '' | ==== Formatierung '' | ||
misc/code_snippets/shell.txt · Last modified: by sascha
