tar has an --exclude option. You can try to use wildcard character. /home/user/.mozilla/*/Cache > 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. > -- http://changmw.homeip.net