s152203-mlworkshops/to_file.sh

6 lines
101 B
Bash
Raw Permalink Normal View History

2020-04-03 15:43:55 +02:00
#!/bin/bash
mv $1 $1.last
tail -999 $1.last > $1.last_1000
cat $2 >> $1.last_1000
mv $1.last_1000 $2