in unix echo is used for

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


Please Help Members By Posting Answers For Below Questions

What is updatedb?

793


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

854


How do you grep a case insensitive?

771


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)?

1244


How do I use grep to search for a file?

813


What does the metacharacter mean?

838


What is the behavioural difference between cmp and diff commands?

923


What is the use of the tee command?

852


How do I delete files from command prompt?

861


What are the differences among a system call, a library function, and a unix command?

845


What is the nmap command?

849


How do I search for text in vi?

795


What are filter commands in unix?

836


Which command can you use to find the currently running process in unix server?

822


What is a bash command?

876