Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Roadmap
Browse Source
View Tickets
Search
Context Navigation
Back to Ticket #1643
Ticket #1643
: cleanup_orphans.sh
File cleanup_orphans.sh,
275 bytes
(added by
anonymous
,
18 years ago
)
Line
1
#!/bin/bash
2
cd /myth/tv
3
for nuv in $(find . -name '*.nuv' -size 1 -print) ; do
4
mpg=$(echo $nuv | sed '/\([0-9]*_[0-9]*\).*/s//\1.mpg/')
5
if [ ! -f "$mpg" ] ; then
6
echo "No $mpg file found, $nuv is an orphan."
7
rm -f "$nuv"
8
fi
9
done
Download in other formats:
Original Format