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
 9EOF
10
11cat >archive/file1 <<-EOF
12	0
13EOF
14
15touch current-expected/file1
16
17cat >archive-expected/file1 <<-EOF
18	0
19	1
20	2
21	3
22	4
23EOF
24
25run_test -k 0