How to add some content in any file at some desired location
without using VI or some other editor in UNIX
Answers were Sorted based on User's Feedback
Answer / tony
A one line piece of text can always be added like this:
$ echo "Please add this text" >> file.txt
A file (a text file preferably) can be added:
$ cat inputfile.txt >> outputfile.txt
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sujitha
We can use "Cat" command same as to work like VI to create
and save a file
example : cat>filename
Hi { we can enter content }
Hello
----
------
(ctrl+c) - It will Save in a file
| Is This Answer Correct ? | 0 Yes | 0 No |
What is shell chemistry?
Write a script to print the first 10 elements of fibonacci series.
Why do we use shell scripting?
How does ls command work?
What does debug script mean?
Why is it called a shell?
Is cmd a shell?
How are shells born?
What is awk in shell script?
What is meant by $1 in shell script?
Explore about environment variables?
What is batch file programming?