From 6b2d0d499b0c82171575e37a52cbc67a5e79c22a Mon Sep 17 00:00:00 2001 From: Norman Koch <kochnorman31@gmail.com> Date: Fri, 12 Nov 2021 14:24:13 +0100 Subject: [PATCH] tab to whitespaces --- doc.zih.tu-dresden.de/docs/software/zsh.md | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/doc.zih.tu-dresden.de/docs/software/zsh.md b/doc.zih.tu-dresden.de/docs/software/zsh.md index 6de666c37..994f1e790 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=//' } ``` -- GitLab