[slurm-users] How to short work folder in `squeue`
Yakupov, Renat /DZNE
Renat.Yakupov at dzne.de
Tue Jan 9 03:50:27 MST 2018
Hi there,
that is more of a bash question. Try editing your output string with `sed` like so:
alias squeue='squeue -u $(whoami) -o "%.10i %.10P %.20j %.2t %.10M %.9l %.6D %R %Z" | sed "s|${HOME}|~|" '
That should do the trick.
Best,
Renat.
________________________________________
From: slurm-users [slurm-users-bounces at lists.schedmd.com] On Behalf Of 刘科 [specter119 at gmail.com]
Sent: Tuesday, January 09, 2018 11:25 AM
To: slurm-users at lists.schedmd.com
Subject: [slurm-users] How to short work folder in `squeue`
Dear slrum developers:
I alias squeue to squeue -u $(whoami) -o "%.10i %.10P %.20j %.2t %.10M %.9l %.6D %R %Z". Now it shows the full path of working dir, but it seems too long to show all the useful messages in online.
Is there any way to shorten the $HOME to ~?
Thanks in advance.
--
[http://ww4.sinaimg.cn/mw690/6701d39bjw1f4vv0mi1i0j20b40b475y.jpg]
刘科
上海交通大学密西根学院
地址:上海市闵行区东川路800号
邮编:200240
邮箱:specter119 at gmail.com<mailto:specter119 at gmail.com>
手机:13262710767<tel:13262710767>
[https://s3-eu-west-1.amazonaws.com/mailtrack-crx/icon-signature.png]<https://mailtrack.io/> Sent with Mailtrack<https://chrome.google.com/webstore/detail/mailtrack-for-gmail-inbox/ndnaehgpjlnokgebbaldlmgkapkpjkkb?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality>
More information about the slurm-users
mailing list