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 a program shell?
Why are there shells on the beach?
what is this line in the shell script do ?#!/bin/ksh
Is shell scripting a programming language?
defination of mapfile in winrunner?
What are environment variables?
What does $1 mean in bash?
How many fields are present in a crontab file and what does each field specify?
what is info area how many types?
What shell is bin sh?
What is the lifespan of a variable inside a shell script?
What is the difference between a variable and value?