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
What is updatedb?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
How do you grep a case insensitive?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
How do I use grep to search for a file?
What does the metacharacter mean?
What is the behavioural difference between cmp and diff commands?
What is the use of the tee command?
How do I delete files from command prompt?
What are the differences among a system call, a library function, and a unix command?
What is the nmap command?
How do I search for text in vi?
What are filter commands in unix?
Which command can you use to find the currently running process in unix server?
What is a bash command?