diff --git a/doc.zih.tu-dresden.de/docs/software/zsh.md b/doc.zih.tu-dresden.de/docs/software/zsh.md index 1c831ae19bff0f4b28705c7d5cb3923be26a747d..8bfd39d1b0bc8a1f5af72143f9943e6ee8f1a44b 100644 --- a/doc.zih.tu-dresden.de/docs/software/zsh.md +++ b/doc.zih.tu-dresden.de/docs/software/zsh.md @@ -181,7 +181,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 | sed -n -e 's/^\s*StdOut=//p' } ```