HELP HELP HELP.......i'm trying to copy thre files: file1.txt file2.txt file3.txt..........
file1.txt
jane doe 12/25/80
john doe 09/05/86
jenny doe 06/30/59
james doe 08/21/59
file2.txt
Address: 5555 Whitby Rd. Baltimore,MD 21206
file3.txt
Phone Number: (410)555-5050
into a file called together.txt..............i did:
$ cat file1.txt file2.txt file3.txt >> together.txt
which produced:
jane doe 12/25/80
john doe 09/05/86
jenny doe 06/30/59
james doe 08/21/59Adress: 5555 Whitby Rd. Baltimore,MD 21206Phone Number: (410)555-5050
i need to write a .sh script that implements this but i don't know how?
......
i thought that after i write the shell and save the command should be: $ ./all.sh together.txt file1.txt file2.txt file3.txt..........and then i cat together.txt........but i'm not sure.
and how do i get the files to copy on separate lines?