The untarred files are HTML files.

The .tar file containing all the web files was originally created by a cron
job :
-----------------------
if [ $DOW = "Sun" ]
then
        NOW=`date +%d-%b`

        # Update full backup date
        tar --preserve -cf $BACKUPDIR/$COMPUTER-$DOW.tar $DIRECTORIES
else
       # Daily incremental backup - overwrite last weeks of same day
        tar $NEWER --preserve -cf $BACKUPDIR/$COMPUTER-$DOW.tar $DIRECTORIES
fi
-------------------------------------

You end up with a name like "myhost-Wed.tar"

All I did was tarred it on the old system (rhel3) and untarred it to the new
system (rhel5)

:-)



On Thu, Jun 26, 2008 at 12:41 PM, Gus Wirth <[EMAIL PROTECTED]> wrote:

> Néstor wrote:
>
>> I made a mistake, on my linux's FF it displays as "World,s Largest"
>> but on W2K's FF it displays as "World?s Largest"  <-- the question mark is
>> actually a question mark inside a black diamond box.
>>
>> I can tell you that the tar backup was done in a 32 bit machine and I
>> untarred it in a 64 bit machine.
>>
>> :-)
>>
>> ---------- Forwarded message ----------
>> From: Néstor <[EMAIL PROTECTED]>
>> Date: Thu, Jun 26, 2008 at 11:53 AM
>> Subject: Character <92>
>> To: Main Discussion List for KPLUG <[email protected]>
>>
>>
>> People,
>>
>> I took my host backups and untared it to discover that the apostrophe
>> characters have
>> been converted to a character "<92>".  I seen this via a web browser or
>> gvim.
>>
>> If I had the following "World's Largest" if was converted to "World<92>
>> Largest" but when
>> I copied to my gmail to write this messages it gets converted to this
>> "World's Largest".
>>
>> Any ideas sugggestions on how I can convert this character back to an
>> apostrophe on
>> all my files?
>>
>> Thanks,
>>
>> Nestor :-)
>>
>>
> Are your files ASCII and just using a code page to display? If so, you can
> use the tr (translate) command to convert the decimal value 92 to the
> decimal value 39 like so:
>
> $ cat orig_file |tr \134 \047 > fixed_file
>
> The  weird values passed to tr are in octal, so \134 is decimal 92 and \047
> is decimal 39.
>
> Except that the decimal value 92 maps to the ASCII character \ (backslash).
> So I'm not sure what the real value is you are trying to convert. You need
> to do some more research, perhaps with a hex editor.
>
> Gus
>
>
>
> --
> [email protected]
> http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
>

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to