KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to configure a server with a few files and I want to do it programmatically. I need to create files say /home/a.config, /var/spool/b.config, /etc/c.config Files above have some contents (multi lines). I want to create ONE shell script which can create all three file with multiple lines (around 10). I would like to know the how can I use CAT command to do that. (inside shell script). I am looking something like this echo " going to create /home/a.config" cat "HOW CAN I HAVE MULTIPLE LINES HERE?? " > /home/a.config thanks
Tags (comma-separated)
Save Edits
Cancel