Can this one-liner be made more compact?
Code: Select all
ps -e > ps.txt && grep -io "ROX-Filer" ps.txt && rm -f ps.txt
Thanks in advance.
musher0
Code: Select all
ps -e > ps.txt && grep -io "ROX-Filer" ps.txt && rm -f ps.txt
Code: Select all
ps f | grep -io "en-bas"
musher0 wrote:Only annoyance now is that "en-bas" appears twice.
Code: Select all
grep -m 1
Code: Select all
ps f | grep -iom 1 "en-bas"
Code: Select all
#!/bin/sh
# /root/my-applications/bin/barre-bas.sh
# Cacher ou afficher une barre ROX en bas de l'écran.
# Hide or display a ROX panel at the bottom of the screen.
# musher0, 17 janv. 2013.
####
cd /root/.config/rox.sourceforge.net/ROX-Filer
[ "`grep -iom 1 \"en-bas\" panels`" == "en-bas" ] && rox -b= || rox -b=en-bas &
# (Pour la commodité de la chose, on peut mettre un icone servant de commutateur sur l'écran.)
# (For ease of use, we can put a switch icon on the screen.)