Proper appending

This commit is contained in:
Artur Nowakowski 2020-04-03 14:55:16 +02:00
parent 28a8f306e1
commit 3cb71891b6
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
#!/bin/bash
mv $1 $1.last
tail -1000 $1.last >> $2
tail -999 $1.last > $1.last_1000
cat $2 >> $1.last_1000
mv $1.last_1000 $2