January 20, 2016

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"


Like  (0 likes)

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.

Like  (3 likes)
Click Here!