Proper appending

This commit is contained in:
Artur Nowakowski 2020-04-03 14:55:16 +02:00
parent 28a8f306e1
commit 3cb71891b6

View File

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
mv $1 $1.last 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