#!/bin/sh
# Remove bad light curves (too small files)
find [1-9]* -type f -ls \
| gawk '$7<300{printf "rm -f %-24s # %s\n", $NF,$7}' > rm.sh
echo "#===There are `wc -l < rm.sh` files to remove"
confirm "See the list" && less rm.sh
confirm "Execute" && sh rm.sh
