Answer Posted / sangu
echo is also used to append the data or overwrite the data
for the existing file.
eg1:
echo "string" > filename --- overwrite the data in the
file
eg2:
echo "string" >> filename --- append the string in the
file.
| Is This Answer Correct ? | 8 Yes | 6 No |
Post New Answer View All Answers
How do I use grep to search for a file?
Can you enlist some commonly used network commands?
Describe the usage and functionality of the command rm –r * in unix?
How do I open a port?
What is rmdir command?
What does the command '$ls | wc –l > file1' do?
What happens when we execute a unix command?
What does touch command do in unix?
Explain command to view process running?
Why is shebang used?
What are reported commands?
What does this command do? Cat food 1 > kitty
What does the md command do?
What is command substitution?
What is the comma to show the space allocation of files?