Append File Contents To Another File

Create A File With A Record Of A Sale

echo 'Bob Jones bought an apple for $2' > sales_monday.txt

Create A File With A Record Of A Sale

echo 'Sarah Miller bought an orange for $2' > sales_tuesday.txt

Create An Empty File For All Sales

touch sales.txt

Append Contents Of Both Files To All Sales File

cat sales_monday.txt sales_tuesday.txt >> sales.txt

View Contents Of All Sales File

cat sales.txt
Bob Jones bought an apple for $2
Sarah Miller bought an orange for $2