Thursday, 15 August 2013

bash - How to add literal text to the Unix 'cat' command -



bash - How to add literal text to the Unix 'cat' command -

i'm trying cat files together, while @ same time adding text between files. i'm unix newbie , don't have hang of syntax.

here's failed attempt:

cat echo "# final version (reflecting edits)\n\n" final.md echo "\n\n# changes made\n\n" edit.md echo "\n\n#your original version\n\n" original.md > combined.md

how prepare this? should using pipes or something?

if understand you, should like:

echo "# final version (reflecting edits)\n\n" >> combined.md cat final.md >> combined.md echo "\n\n# changes made\n\n" >> combined.md cat edit.md >> combined.md

and on.

bash cat

No comments:

Post a Comment