Getting rid of goutputstream-files

Ralf Mardorf ralf.mardorf at alice-dsl.net
Sun Mar 3 20:02:35 UTC 2013


Not solved, as a workaround I'll edit the command for Ubuntu Quantal
from "rmgoutputstream" to "rmgoutputstream -" [1].
It still would be nice to have a solution that does remove
~/.goutputstream-[6 signs] files _size 48 byte only_.

[1]
[rocketmouse at archlinux ~]$ cat /usr/local/bin/rmgoutputstream
#!/bin/sh
# /usr/local/bin/rmgoutputstream
cd ~
if [ -n "$1" ] ; then
 case $1 in
  -)   rm .goutputstream-?????? ;;
  -a)  rm .goutputstream-* ;;
  -ar) rm -r .goutputstream-* ;;
  -mk) touch .goutputstream-00b45 .goutputstream-00b456 .goutputstream-00b4567
       echo "12345678911234567892123456789312345678941234567" > .goutputstream-48b456
       mkdir .goutputstream-dir456 ;;
  *)   echo "$ rmgoutputstream"
       echo "  Remove ~/.goutputstream-[6 signs] files size 0 byte"
       echo "$ rmgoutputstream -"
       echo "  Remove ~/.goutputstream-[6 signs] files"
       echo "$ rmgoutputstream -a"
       echo "  Remove ~/.goutputstream-[all]     files"
       echo "$ rmgoutputstream -ar"
       echo "  Remove ~/.goutputstream-[all]     files and directories"
       echo "$ rmgoutputstream -mk"
       echo "  Make   ~/.goutputstream-[dummy files and directory]" ;;
 esac
else
 find ~/.goutputstream-?????? -type f -size 0b -exec rm {} \;
fi
exit 0




More information about the Ubuntu-Studio-users mailing list