find /usr | grep -i wx | grep -v -i python | grep -v -i soffice > rm_wx.sh # | Collect wx files. Exclude wxpython, and soffice files sed -i -e 's/\/usr\//rm -rf \/usr\//g' rm_wx.sh