archive-logs

Iteratively archive newline separated log files

git clone https://git.8pit.net/archive-logs.git

 1#!/bin/sh
 2. "${0%/*}/common.sh"
 3
 4cat >current/file1 <<-EOF
 5	3
 6	4
 7EOF
 8
 9cat >current-expected/file1 <<-EOF
10	4
11EOF
12
13cat >archive/file1 <<-EOF
14	1
15	2
16EOF
17
18cat >archive-expected/file1 <<-EOF
19	1
20	2
21	3
22EOF
23
24run_test