How do I create a file and write script inside?
How to create file and write script inside this file?
Answer to the question
you can done this by using echo command in linux
echo " your script" >> file.txt
this will write append the content the file.txt with content "your script"
Open terminal and type:...
Open terminal and type:
echo "This is my script" >> myfilename
That will create a file called "myfilename" with your script inside it.