3 #=======================================================================
5 # File ID: 81a4b5e0-cb0b-11e3-8632-000df06acc56
7 # Strip irrelevant stuff from nf list of mobile files
9 # Author: Øyvind A. Holm <sunny@sunbase.org>
10 # License: GNU General Public License version 2 or later.
11 #=======================================================================
25 " -n "$progname" -- "$@
")"
26 test "$?" = "0" ||
exit 1
34 -h|
--help) opt_help
=1; shift ;;
35 -q|
--quiet) opt_quiet
=$
(($opt_quiet + 1)); shift ;;
36 -v|
--verbose) opt_verbose
=$
(($opt_verbose + 1)); shift ;;
37 --version) echo $progname $VERSION; exit 0 ;;
39 *) echo $progname: Internal error
>&2; exit 1 ;;
42 opt_verbose
=$
(($opt_verbose - $opt_quiet))
44 if test "$opt_help" = "1"; then
45 test $opt_verbose -gt 0 && { echo; echo $progname $VERSION; }
48 Strip irrelevant stuff from nf list of mobile files
50 Usage: $progname [options]
57 Be more quiet. Can be repeated to increase silence.
59 Increase level of verbosity. Can be repeated.
61 Print version information.
67 grep -i -E -e '\.(flac|gz|jpeg|jpg|m4a|mp3|mp4|pdf|pgn|png|wav)' \
68 -e /SMSBackupRestore
/ | \
71 -e /Android
/data
/cgeo
\\.geocaching
/files
/GeocacheData
/ \
72 -e /Android
/data
/com
\\.amazon
\\.kindle
/files
/appexpan
/ \
73 -e /Android
/data
/com
\\.andrewshu
\\.android
\\.redditdonation
/cache
/prefetch
/ \
74 -e /Android
/data
/com
\\.bambuna
\\.podcastaddict
/files
/podcast
/ \
75 -e /Android
/data
/com
\\.dropbox
\\.android
/cache
/ \
76 -e /Android
/data
/com
\\.dropbox
\\.android
/cache
/thumbs
/ \
77 -e /Android
/data
/com
\\.dropbox
\\.android
/files
/scratch
/ \
78 -e /Android
/data
/com
\\.duolingo
/cache
/ \
79 -e /Android
/data
/com
\\.evernote
/files
/announcements
/ \
80 -e /Android
/data
/com
\\.google
\\.android
\\.apps
\\.docs
/files
/pinned_docs_files_do_not_edit
/ \
81 -e /Android
/data
/com
\\.google
\\.android
\\.apps
\\.maps
/testdata
/voice
/ \
82 -e /Android
/data
/com
\\.google
\\.android
\\.gms
/files
/ \
83 -e /Android
/data
/com
\\.google
\\.earth
/cache
/ \
84 -e /Android
/data
/com
\\.google
\\.vr
\\.cyclops
/files
/samples
/ \
85 -e /Android
/data
/com
\\.gopro
\\.smarty
/cache
/ \
86 -e /Android
/data
/com
\\.handmark
\\.tweetcaster
/cache
/ \
87 -e /Android
/data
/com
\\.nianticproject
\\.ingress
/cache
/ \
88 -e /Android
/data
/com
\\.rovio
\\.angrybirdsspace
\\.ads
/cache
/sessions
/ \
89 -e /Android
/data
/com
\\.samsung
\\.android
\\.app
\\.episodes
/cache
/thumbnail \
90 -e /Android
/data
/com
\\.samsung
\\.android
\\.app
\\.episodes
/files
/album
/ \
91 -e /Android
/data
/com
\\.samsung
\\.android
\\.snote
/cache
/sstream_cache
/ \
92 -e /Android
/data
/com
\\.sec
\\.android
\\.app
\\.FlashBarService
/files
/Pictures
/ \
93 -e /Android
/data
/com
\\.sec
\\.android
\\.app
\\.sbrowser
/TabManager
/ \
94 -e /Android
/data
/com
\\.sec
\\.android
\\.app
\\.sbrowser
/files
/Pictures
/com
\\.sec
\\.android
\\.app
\\.sbrowser
/TabManager
/ \
95 -e /Android
/data
/com
\\.sec
\\.android
\\.app
\\.shealth
/cache
/ \
96 -e /Android
/data
/com
\\.sec
\\.everglades
/Files
/icons
/ \
97 -e /Android
/data
/com
\\.touchtype
\\.swiftkey
/files
/ \
98 -e /Android
/data
/com
\\.tripadvisor
\\.tripadvisor
/files
/MapResources
/ \
99 -e /Android
/data
/com
\\.vlingo
\\.midas
/serial
/ \
100 -e /Android
/data
/dentex
\\.youtube
\\.downloader
/files
/cache
/ \
101 -e /Android
/data
/org
\\.telegram
\\.messenger
/cache
/ \
102 -e /Android
/data
/org
\\.videolan
\\.vlc
/cache
/art
/ \
103 -e /Android
/data
/org
\\.videolan
\\.vlc
/files
/thumbs
/ \
104 -e /Android
/data
/reddit
\\.news
/cache
/ \
105 -e /AnkiDroid
/collection
\\.media
/ \
106 -e /BeyondPod
/Podcasts
/ \
107 -e /Camera360
/TempData
/ \
108 -e /Camera360
/www
/demo
/ \
109 -e /Camera360
/www
/images
/ \
110 -e /Camera360
/www
/scene
/ \
111 -e /Camera360
/www
/skin
/ \
112 -e /DCIM
/\\.thumbnails
/ \
113 -e /DoggCatcher
/EpisodeEnclosures
/ \
114 -e /DoggCatcher
/PodcastImages
/ \
116 -e /UnityAdsVideoCache
/ \
119 -e /\\.samsungvideohub
/cache
/ \
121 -e /extSdCard
/Android
/data
/com
\\.bambuna
\\.podcastaddict
/files
/podcast
/ \
122 -e /foursquare
/cache
/ \
123 -e /foursquare
/category_cache
/ \
124 -e /foursquare
/photo_cache
/ \
128 -e ☠_her_har_vi_slutten |
less