I would like to write a script on a linux box (using bash) that examines various logs and sends an email to administrator if an error occurs.
These logs includes windows 2k backup logs. These backup logs are in unicode format and though you can view them in bash (e.g using cat or more) you can not grep on them. Also you can not edit them using vi.
Is there any way in linux to convert these files in normal text format?
In windows I accomplished that with the command:
type backup_unicode.log>backup.log. (It does not work on linux)
These logs includes windows 2k backup logs. These backup logs are in unicode format and though you can view them in bash (e.g using cat or more) you can not grep on them. Also you can not edit them using vi.
Is there any way in linux to convert these files in normal text format?
In windows I accomplished that with the command:
type backup_unicode.log>backup.log. (It does not work on linux)