I need a very simple (hopefully) 1 liner command that reads in a file appends a string and outputs to a new file, without changing the original data.
file1 string
------ ------
apple oranges
bananas
MAGIC COMMAND
filel file2
------ ------
apple apple
bananas bananas
oranges
basically, cat file1 + 'oranges' > file2
I'm using autosys to run the command, and I'm pretty sure it doesn't allow for &&
or ;
as part of a single command.