Proper appending

This commit is contained in:
Artur Nowakowski 2020-04-03 15:00:30 +02:00
parent 3cb71891b6
commit 98bfaa4e4a

View File

@ -1,6 +1,7 @@
#!/bin/bash
truncate -s 0 $1
mv $1 $1.last
tail -999 $1.last > $1.last_1000
cat $2 >> $1.last_1000
mv $1.last_1000 $2
mv $1.last_1000 $2