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

Which command is used to create a directory?

759


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

780


Explain mount and unmount command.

826


What is ‘ps’ command for?

830


What is the difference between cat and more command?

874






What is the general format of unix command syntax?

1117


What is the pipe command?

797


Which command will print your home directory on screen?

770


What difference between cmp and diff commands?

935


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1002


How to display no of records in oracle using unix command?

786


What are reported commands?

773


Who invented grep?

863


What are some command words?

793


Give the command for finding the current date.

750