All,
I need some help with some logic with awk. I am using awk
to parse backup output from piped information. I am extracting file paths that could not be backed up. I want to put some logic in my script that says....if the line contains "(WIN32" delete the part of the line starting with (WIN32 and everything else after it. This will give me just the file path that could not be backed up and I can then use the file paths in a backup command that will automatically rerun them. Below is sample output.
WRN - can't open file: C:\Program Files\CSCOpx\databases\cmf\cmf.db (WIN32
32: The process cannot access the file because it is being used by another process. )
Thanks!!!!
Mike
I need some help with some logic with awk. I am using awk
to parse backup output from piped information. I am extracting file paths that could not be backed up. I want to put some logic in my script that says....if the line contains "(WIN32" delete the part of the line starting with (WIN32 and everything else after it. This will give me just the file path that could not be backed up and I can then use the file paths in a backup command that will automatically rerun them. Below is sample output.
WRN - can't open file: C:\Program Files\CSCOpx\databases\cmf\cmf.db (WIN32
32: The process cannot access the file because it is being used by another process. )
Thanks!!!!
Mike