How to add some content in any file at some desired location
without using VI or some other editor in UNIX

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

3791


Why is the use of shell script?

736


What is the use of "$?" Sign in shell script?

793


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

3194


What does sh mean?

787


What is the default shell of solaris?

764


Is shell and terminal the same?

787


How do I run a shell script in powershell?

763


What will happen to my current process when I execute a command using exec?

734


How do I stop script errors?

761


What language is bash written in?

753


What is awk in shell scripting?

781


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

1874


What happens when you type ls?

750


How do I start a shell script?

783