~ubuntu-branches/ubuntu/quantal/freewheeling/quantal

« back to all changes in this revision

Viewing changes to scripts/godelete-date

  • Committer: Bazaar Package Importer
  • Author(s): Paul Brossier
  • Date: 2005-08-06 15:11:54 UTC
  • Revision ID: james.westby@ubuntu.com-20050806151154-nvhhuxtyvgweh75u
Tags: upstream-0.5pre4
ImportĀ upstreamĀ versionĀ 0.5pre4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Aid for trimming loop/scene libraries
 
2
#
 
3
# This script can be used in the FreeWheeling library folder (fw-lib/ by default)
 
4
# to delete all loops & scenes with a specific date-
 
5
#
 
6
# For example: godelete-date "Apr 15" deletes all files from April 15. Don't forget quotes!
 
7
#              godelete-date "Apr 16 21:" deletes all files from April 16 from 9pm-10pm. 
 
8
#
 
9
# No files are deleted before prompting you
 
10
#
 
11
echo Found these files..
 
12
ls -lt | grep "$1"
 
13
rm -i `ls -lt | grep "$1" | awk '{ print $9 }'`