File: godelete-date

package info (click to toggle)
freewheeling 0.6.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,136 kB
  • sloc: cpp: 23,079; xml: 3,632; ansic: 1,818; sh: 1,241; makefile: 45
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 }'`