File: godelete-date

package info (click to toggle)
freewheeling 0.6-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,848 kB
  • ctags: 4,510
  • sloc: cpp: 22,446; sh: 3,711; xml: 2,879; makefile: 29; ansic: 12
file content (13 lines) | stat: -rwxr-xr-x 501 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Aid for trimming loop/scene libraries
#
# This script can be used in the FreeWheeling library folder (fw-lib/ by default)
# to delete all loops & scenes with a specific date-
#
# For example: godelete-date "Apr 15" deletes all files from April 15. Don't forget quotes!
#              godelete-date "Apr 16 21:" deletes all files from April 16 from 9pm-10pm. 
#
# No files are deleted before prompting you
#
echo Found these files..
ls -lt | grep "$1"
rm -i `ls -lt | grep "$1" | awk '{ print $9 }'`