in unix echo is used for
Answers were Sorted based on User's Feedback
Answer / khemnath chauhan
echo command is particularly use for displaying the
statement
echo "statement"
OR
echo statement
| Is This Answer Correct ? | 44 Yes | 5 No |
Answer / tubecharger
In unix, echo is used to display whatever is following it
onto the terminal or screen. Special characters get handled
differently and are processed by the shell with their
special meaning. If special characters are to be displayed
using echo, then they must be preceded by a back-slash or
put in quotes or double quotes or a combination of all of
these depending on what you are trying to do.
For example:
example 1:
echo hello world
displays
hello world
example 2:
echo "Hello there!"
displays
Hello there!
(and here the special character ! is quoted so that it's
special meaning is ignored.)
example 3:
set message = "this is a message."
echo $message
displays
this is a message.
echo on - by itself does not turn on and off echoing of
commands to the terminal. echo on simply types "on" at the
terminal.
echo string >> filename may work on some systems but the
conventional way of doing this is using the cat command:
cat "hello world" > filename
Refer to the man page on csh, bash or sh for more details on
the echo command.
| Is This Answer Correct ? | 20 Yes | 2 No |
Answer / shaishaw
echo is used for
........................
1> Displaying the message
$ echo "xyz"
xyz
2> Displaying the content of the variable
$ x=5
$ echo x=$x;
x=5
| Is This Answer Correct ? | 14 Yes | 0 No |
Answer / rajib mallick
echo command is used for displaying contents of environment
variables, messages and statements as well.
| Is This Answer Correct ? | 15 Yes | 5 No |
Answer / rahul
in unix echo is used to display the text
ex; echo "oracle"
result :oracle
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / bikas
The echo command is a built-in command of shell.
Its purpose is to output its arguments on to standard output..
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
What is the protocol for PING command?
Give two UNIX kernel parameters that effect an Oracle install
What difference between cmp and diff commands?
How would you change all occurrences of a value using VI?
What are Unix processes, and how do you manage them?
Explain iostat, vmstat and netstat.
What is a shell in Unix? Name some common Unix shells.
Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.
How do I run a whois command?
how to sort the content of the file based on numeric values
The command grep first second third /usr/you/myfile a) prints lines containing the words first, second or third from the file /usr/you/myfile b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them d) replaces the word first with the word second in the files third and /usr/you/myfile e) None of the above
What is grep and sed command?