#!/bin/sh
# $Id: sparsify,v 1.1 2017/12/26 04:35:58 friedman Exp $

v=--verbose
case $1 in
    -v ) v=--verbose; shift ;;
    -q ) v=; shift ;;
esac

for file in "$@"; do
    tm=`stat -c "%y" "$file"`
    fallocate --dig-holes $v "$file"
    touch -d "$tm" "$file"
done

# eof
