diff --git a/doc.zih.tu-dresden.de/docs/software/zsh.md b/doc.zih.tu-dresden.de/docs/software/zsh.md index 6de666c377b799e04484347897fc0515841e54ba..994f1e790049c5a00b17daf9f8b5d0fc1abbb150 100644 --- a/doc.zih.tu-dresden.de/docs/software/zsh.md +++ b/doc.zih.tu-dresden.de/docs/software/zsh.md @@ -105,20 +105,20 @@ and it will create it and `cd` into it ```bash function treesizethis { - du -k --max-depth=1 | sort -nr | awk ' - BEGIN { - split("KB,MB,GB,TB", Units, ","); - } - { - u = 1; - while ($1 >= 1024) { - $1 = $1 / 1024; - u += 1 - } - $1 = sprintf("%.1f %s", $1, Units[u]); - print $0; - } - ' + du -k --max-depth=1 | sort -nr | awk ' + BEGIN { + split("KB,MB,GB,TB", Units, ","); + } + { + u = 1; + while ($1 >= 1024) { + $1 = $1 / 1024; + u += 1 + } + $1 = sprintf("%.1f %s", $1, Units[u]); + print $0; + } + ' } ``` @@ -173,7 +173,7 @@ This allows you to run `slurmlogpath $SLURM_ID` and get the log-path directly in ```bash function slurmlogpath { - scontrol show job $1 | grep StdOut | sed -e 's/^\s*StdOut=//' + scontrol show job $1 | grep StdOut | sed -e 's/^\s*StdOut=//' } ```