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 the need of including script interpreter in your shell script?
shell script for reverse the string
Explain how you Automate your application using Shell scripting.
What is the meaning of $1 in shell script?
What is an sh file?
write a shell script to check whether all the directories in the path exist has read and write permission
What is a program shell?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
1.Write a script, which converts a number from binary to hexadecimal format or vice versa.
How do we delete all blank lines in a file?
What is the fastest scripting language?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?