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	1
 6	2
 7	3
 8	4
 9	5
10	6
11	7
12	8
13	9
14	10
15EOF
16
17cat >current-expected/file1 <<-EOF
18	8
19	9
20	10
21EOF
22
23cat >archive-expected/file1 <<-EOF
24	1
25	2
26	3
27	4
28	5
29	6
30	7
31EOF
32
33run_test -k 25