Reporter: What is the CLI command to rename .done access log files to log.gz?

book

Article ID: 166858

calendar_today

Updated On:

Products

Reporter

Issue/Introduction

On Windows, the command is: ren *.done *.

On Linux, Reporter provides a utility. In the Blue Coat Reporter folder, this file is called reset.done. Execute this file inside the folder that contains the access logs. If you cannot locate this file, use the following one-line expression. 
  for i in `ls | grep '\.done$'`; do mv $i `echo $i | sed -e 's/\.done$//g'`; done