刘科 <specter...@gmail.com> writes: > 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.
It's a bit of a hack, but how about squeue -u $(whoami) -o "%.10i %.10P %.20j %.2t %.10M %.9l %.6D %R %Z" | sed -e 's%/home/[^/]\+/*%~/%' ? Cheers, Loris -- Dr. Loris Bennett (Mr.) ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de