Tuesday, October 29, 2013

Goodies

to see if PuTTY is actually passing the ^R, by running "cat" and then pressing that button.



$ xev | grep -A2 --line-buffered '^KeyRelease'| \
     sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
 
 
$ for file in $(grep '_file.*' /etc/mpd.conf | sed 's/.* //' | xargs)
  do
    touch ${file}
    chown $(grep '^user.*' /etc/mpd.conf | sed 's/.* //') ${file}
  done
 

No comments:

Post a Comment