开发者

Can I concatenate text / html files with some soft of batch file?

On windows I could do something like...

copy /b file1+file2 file3

copy /b file1+file4 file5

In one batch file to generate a files made up of several files.

I've trying to create some html help files, with a header, footer, unique content and files containing common c开发者_高级运维ontent.

How can I do this ?


cat file1 file2 >> file3
cat file1 file4 >> file5

file3 and file5 are the output files, just list the files you want to concatenate in order of how they should appear in the output files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜