开发者

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

开发者 https://www.devze.com 2023-01-20 07:35 出处:网络
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.

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

精彩评论

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

关注公众号