1#!/bin/sh2. "${0%/*}/common.sh"34cat >current/file1 <<-EOF5 fooooobaaarr6 foobar7EOF89cat >current/file2 <<-EOF10 test12311 barfoooooooo12EOF13cat >current/file3 <<-EOF14 115 216EOF17chmod -w current/file2 current/file31819cat >current-expected/file1 <<-EOF20 foobar21EOF2223cat >archive-expected/file1 <<-EOF24 fooooobaaarr25EOF2627archive_logs -e "file[2-3]"28rm current/file2 current/file3 </dev/null29check_dirs