Jan 6, 2004 #1 msen IS-IT--Management Apr 24, 2001 36 US How would I copy multiple file in one file ? Need urgent help.
Jan 6, 2004 #2 PHV MIS Nov 8, 2002 53,708 FR Try something like this: Code: cat file1 file2 ... fileN >outputfile Hope This Help PH. Upvote 0 Downvote
Jan 6, 2004 Thread starter #3 msen IS-IT--Management Apr 24, 2001 36 US I tried the suggestion. It is being copied as a continuous string. I want each file to be copied on a new line in the outfile. Upvote 0 Downvote
I tried the suggestion. It is being copied as a continuous string. I want each file to be copied on a new line in the outfile.
Jan 6, 2004 #4 PHV MIS Nov 8, 2002 53,708 FR And this ? Code: for f in file1 file2 .... fileN do cat $f echo done >outfile Seems the contents of your input files are not LF terminated. Hope This Help PH. Upvote 0 Downvote
And this ? Code: for f in file1 file2 .... fileN do cat $f echo done >outfile Seems the contents of your input files are not LF terminated. Hope This Help PH.
Jan 6, 2004 #5 olded Programmer Oct 27, 1998 1,065 US Hi: I'm not certain what you want your output to look like, but have you considered using xargs: cat file1 file2|xargs -n1 > newfile Regards, Ed Upvote 0 Downvote
Hi: I'm not certain what you want your output to look like, but have you considered using xargs: cat file1 file2|xargs -n1 > newfile Regards, Ed