Skip to content
Snippets Groups Projects
Commit 6b2d0d49 authored by Norman Koch's avatar Norman Koch
Browse files

tab to whitespaces

parent 11862722
No related branches found
No related tags found
3 merge requests!446docs: Add Jupyter Teaching Example,!445Automated merge from preview to main,!405Resolve "There is nothing about ZSH"
...@@ -105,20 +105,20 @@ and it will create it and `cd` into it ...@@ -105,20 +105,20 @@ and it will create it and `cd` into it
```bash ```bash
function treesizethis { function treesizethis {
du -k --max-depth=1 | sort -nr | awk ' du -k --max-depth=1 | sort -nr | awk '
BEGIN { BEGIN {
split("KB,MB,GB,TB", Units, ","); split("KB,MB,GB,TB", Units, ",");
} }
{ {
u = 1; u = 1;
while ($1 >= 1024) { while ($1 >= 1024) {
$1 = $1 / 1024; $1 = $1 / 1024;
u += 1 u += 1
} }
$1 = sprintf("%.1f %s", $1, Units[u]); $1 = sprintf("%.1f %s", $1, Units[u]);
print $0; print $0;
} }
' '
} }
``` ```
...@@ -173,7 +173,7 @@ This allows you to run `slurmlogpath $SLURM_ID` and get the log-path directly in ...@@ -173,7 +173,7 @@ This allows you to run `slurmlogpath $SLURM_ID` and get the log-path directly in
```bash ```bash
function slurmlogpath { function slurmlogpath {
scontrol show job $1 | grep StdOut | sed -e 's/^\s*StdOut=//' scontrol show job $1 | grep StdOut | sed -e 's/^\s*StdOut=//'
} }
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment