File Operations

This is an old revision of the document!


File Operations

Fast file deletion

perl

cd <directory>
perl -e 'for(<*>){((stat)[9]<(unlink))}'

rsync

mkdir empty_dir
rsync -a --delete empty_dir/ <directory>/

/home/www/sites/esgr.in/wiki/data/attic/operations/file_operations.1463958729.txt.gz · Last modified: 2016/05/22 23:12 by eServices Greece