[xubuntu-users] Getting rid of goutputstream-files
Sajan Parikh
email at sajanp.com
Sun Mar 3 23:39:22 UTC 2013
Haven't tried it, but wouldn't something like the following work?
sudo find / -name .goutputstream* -exec rm {} \;
You might have to pipe a yes or y through the beggining if you have a
crap ton and don't want to confirm each one.
yes | sudo find / -name .goutputstream* -exec rm {} \;
Sajan Parikh
e: email at sajanp.com
p: (563) 447-0822
w: http://sajanp.com
On 03/03/2013 02:02 PM, Ralf Mardorf wrote:
> 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
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4473 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.ubuntu.com/archives/xubuntu-users/attachments/20130303/44b8bbea/attachment.bin>
More information about the xubuntu-users
mailing list