Quoting Marc Weber <[email protected]>:

  ls -1t "$dump_dir"/sup-dumps-* | { read; read; read; read; cat } | xargs rm

"{ read; read; read; read; cat }" could probably better be done as "tail +5"; makes it easier to adjust to people's choice of backup count, too. ;-)
- Daniel "Bikeshedder" Wagner
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to