File: gomv-date

package info (click to toggle)
freewheeling 0.6-1.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,960 kB
  • sloc: cpp: 22,418; sh: 3,711; xml: 2,879; makefile: 78; ansic: 12
file content (15 lines) | stat: -rwxr-xr-x 598 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Aid for managing loop/scene libraries
#
# This script can be used in the FreeWheeling library folder (fw-lib/ by default)
# to move all loops & scenes with a specific date-
#
# For example: gomv-date "Apr 15" test/ moves all files from April 15 to folder 'test'. Don't forget quotes!
#              gomv-date "Apr 16 21:" old/ moves all files from April 16 from 9pm-10pm to folder 'old'. 
#
# No files are moved before prompting you.
#
echo Found these files..
ls -lt | grep "$1"
echo "Move these files to $2? (Enter=Yes, CTRL-C=Abort)"
read
mv -i -v `ls -lt | grep "$1" | awk '{ print $9 }'` $2