File: goarchive-date

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