Thread: How do I combine two files?
hi, have 2 text files text, called "file1" , "file2". wanted learn how can use command line combine these 2 files , read "man cat" explains "cat - concatenate files , print on standard output".
attempt @ first:
the result was, neither file1 nor file2 modified, result shown me in terminal text file1, line break, , text file2. not trying do, had few questions:code:cat file1 file2
1) how modify file1 only, text of file2 added end of file1?
2) how not modify either file, create new file called file3 has file1's text, , file2's text right after?
3) how rid of line break or replace custom text? example, file1 text, , "below point text file2".
4) there guide learn how more complicated tasks manipulate files command line? example, if want grab lines begin character # file1 concatenate full text file2 , output result file3 or similar.
thank you.
i don't have line break here.....post pic of difficulty is.
in terminal 'man grep' @ #4.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] How do I combine two files?
Ubuntu
Comments
Post a Comment