Skip to content

Instantly share code, notes, and snippets.

View ryang3d's full-sized avatar

Ryan Gingerich ryang3d

View GitHub Profile
@ryang3d
ryang3d / videopurge.sh
Last active August 29, 2015 14:23
Script for automatically deleting videos older than x days from specified folders.
#!/usr/bin/env bash
# Delete files older than the given number of days in the given directory
# Usage: rmold $DAYS $DIR
# Example: rmold 7 temp
function rmold() {
DAYS=$1
DIR=$2
# Execute operation
# echo "Deleting files in $DIR older than $DAYS days old"
@ryang3d
ryang3d / videopurge.sh
Last active August 29, 2015 14:23 — forked from lazd/videopurge.sh
#!/usr/bin/env bash
# Delete files older than the given number of days in the given directory
# Usage: rmold $DAYS $DIR
# Example: rmold 7 temp
function rmold() {
DAYS=$1
DIR=$2
# Find only files older than the specified date/time
echo "Deleting files in $DIR older than $DAYS days old"
### Keybase proof
I hereby claim:
* I am nonaym on github.
* I am djnonaym (https://keybase.io/djnonaym) on keybase.
* I have a public key ASDQZexABhKuUHtx1MFXCQOV1NNmr2PCCpnx4g3BqycqXgo
To claim this, I am signing this object: