Data backup

Phillip J Shelton shelton11@dingoblue.net.au
Sat, 16 Jun 2001 09:06:46 +1000


>
>  The main file will have the filename 'foo' while all the un-needed (in this case at least) files will be ^foo\.\d{14}\.(log|xac)$ (in other words, the filename, followed by a period, followed by 14 digits, followed by a period, then either log or xac).  The main file will also usually be the newest (`ls -t | head -n1`).  The main file is not always the largest though.
>

Only works if you have not gone and lost the file names, as Jens did on his(?) machine. <grin/>