With *nix, there’s always a better way. As I was browsing the mailing lists, I came across an interesting thread about piping the output of find to tar through xargs.
# tar -czvf `date +%d%b%Y`.tar `date +%d%b%Y-%d%b%Y`/
This can be extended to run through several dates, probably in a for...in...`seq... code block.
0 Response to “Shorter cut”