How to add some content in any file at some desired location
without using VI or some other editor in UNIX
Answer Posted / 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 |
Post New Answer View All Answers
What is the first line in every perl script called?
How to redirect both standard output and standard error to the same location?
What are the advantages of shell script?
What is basename in shell script?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
Explain about the exit command?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
Why are shell scripts used?
Why do we write bin bash in shell scripts?
What does it mean to debug a script?
What does echo $0 do?
What is shell and terminal?
What makes c shell a more preferable option than the bourne shell?
How do I read a .sh file?