Script for friendlier home partition under other OS
Magnus Therning
magnus at therning.org
Tue Jun 7 19:08:17 UTC 2005
On Tue, Jun 07, 2005 at 09:55:23AM +0200, Gábor Iglói wrote:
>Only one thing remained now:
>
>To speed up things I should clear up before tarring ~/.thumbnails
>containing several MB of image thumbs and Firefox's page cache. The
>first is easy enough for me, but Firefox stores it's user spec things
>under a "randomsequence".default folder under ~/.mozilla/firefox. I
>managed to get this folders name with
>
>user at ubuntu1:~$ cat /home/user/.mozilla/firefox/profiles.ini | grep Path=
>Path=u8n5vr1q.default
>
>But how can I cut out the "u8n5vr1q.default" string from that command's
>output? I'd like to clear the
>/home/user/.mozilla/"randomsequence".default/Cache folder from my
>script.
Two options:
1. The folder name ends with '.default' since it's the default user, so
you can use ~/.mozilla/firefox/*.default to get it. If you always
use only one user then that should work.
2. Building on your use of 'cat' above you will find that 'cut' is your
friend:
$ cat ~/.mozilla/firefox/profilies.ini|grep Path|cut -f 2 -d =
Hope it helps.
/M
--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus at therning.org
http://therning.org/magnus
Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.
Ah, good taste! What a dreadful thing! Taste is the enemy of
creativeness.
-- Pablo Picasso
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050607/cba73268/attachment.sig>
More information about the ubuntu-users
mailing list