How do you print the output the same string which is typed
in command line. how do you write the shell script or
command for this. if i entered "Hello" in command line, it
should print 'Hello', if i say "Hello Welcome", i should get
the "Hello Welcome" as output.?
Answer Posted / santana20142003
$read line ---> it will read
$ echo $line ---> it will display
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What's the difference between scripting and coding?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
How to open a read-only file in the shell?
Is shell scripting useful?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
How can you find out how long the system has been running?
What is the use of "$#" in shell scripting?
How can we find the process name from its process id?
What is a shell in operating system?
What is the difference between bash and shell?
How to print all the arguments provided to the script?
c program to display the information of given file similar to givan by the unix or linux command ls -l
What is the syntax of while loop in shell scripting?
Is shell scripting a programming language?