Re: Automated-backup script

From: Will Wesley (willwesleyccna_at_comblockcast.net)
Date: 05/12/04


Date: Tue, 11 May 2004 16:19:08 -0600

Daniel Lidstrom wrote:
> If I knew how to write that script, it would already be done :-)
> My idea is the following:
> 1) download the backup file
> 2) find out what name it was given (by finding the latest modified file)
> 3) By name of file, I know what is the next-latest file (last
> character of file, if it is a digit, minus 1)
> 4) Compute checksums for both files.
> 5) If equal, remove latest file
> 6) Else, do nothing
>
> Anybody who is fluid with scripts that can help me?
> Thanks in advace.
>

Off the top of my head in ksh:
{ sum $file1;sum $file2; }|{ read cksum1 b; read cksum2 b;if (( cksum1 \
== cksum2 )); then `rm -F $file2`; fi; }
but tmtowtdi.



Relevant Pages

  • Re: Need formula to extract a numeric value from a free-format tex
    ... I needed to make one more modification to my formula to correct an area where it incorrectly missed the 7 digit number. ... Rick (MVP - Excel) ... I've seen that double minus before and never understood the point. ... would see text constructions like these 7 character long pieces of text... ...
    (microsoft.public.excel.misc)
  • Re: Need formula to extract a numeric value from a free-format tex
    ... First off, before answering your questions, here is a revised formula (the previous one could not detect an 8 or more digit number in front of the 7 digit number you wanted to find... ... Putting the double minus sign in front force Excel to attempt to multiply the text by minus one twice (--TextNumber is the same as doing this... ... So, as the array formula iterates down the text, it will would see text constructions like these 7 character long pieces of text... ...
    (microsoft.public.excel.misc)
  • Re: Fortran decimal anyone?
    ... One Decimal Digit per Byte Data Formats. ... In some cases, the sign indication, if present, was a separate ... character -- a minus sign or a plus sign in the ... A leading separate character as in, ...
    (comp.lang.fortran)
  • RE: Excel column width question again
    ... do not need to determine what font and point size to use. ... Truncate(128/{Maximum Digit Width}))/256)*)' to ... 100+0.5)/100 to convert pixel to character number. ... Microsoft Online Community Support ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: embarrassing spaghetti code needs stylistic advice
    ... assumes that there is a character in CH which ... necessary using RCH, and it calls RCH at least once so that, when it ... You seem very worried about reading in an EOF character. ... Either '+' is followed by a digit, ...
    (comp.lang.c)