comparison moveLogs.sh @ 20:8b4481769cc6

fix move logs
author Vadim Filimonov <fffilimonov@yandex.ru>
date Mon, 05 Aug 2024 11:32:22 +0300
parents 64eee582fec1
children
comparison
equal deleted inserted replaced
19:a90e510ccc4f 20:8b4481769cc6
4 4
5 mv $hgaccesslog ${hgaccesslog}".0"; 5 mv $hgaccesslog ${hgaccesslog}".0";
6 6
7 reposLogsDir=${ROOTPWD}"/logs/repos"; 7 reposLogsDir=${ROOTPWD}"/logs/repos";
8 ls $reposLogsDir | while read filename; do 8 ls $reposLogsDir | while read filename; do
9 mv $reposLogsDir/$filename $reposLogsDir/${filename}".0"; 9 mv -f $reposLogsDir/$filename $reposLogsDir/${filename}".0";
10 done; 10 done;