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 do chgrp command do?

850


What is awk command used for?

796


Why is shebang used?

820


What is merge command in unix?

1161


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1990


What is grep r?

807


What is the search command in unix?

835


What is ctrl d?

822


Enlist some filename manipulation commands in unix.

774


Name the unix command to find how many days the server has been up.

877


What is awk good for?

803


What is difference between grep and find command in unix?

854


How does shebang work?

816


Which command is used to find whether the system is 32 bit or 64 bit?

851


what is the advaantage of each user having its own copy of the shell?

2312