If you have a string "one two three", which shell command
would you use to extract the strings?
Answer Posted / asit pal
echo $a | tr " " "\n" | head -1
echo $a | tr " " "\n" | head -2
echo $a | tr " " "\n" | head -3
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the first line of a shell script called?
How will you print the login names of all users on a system?
What is difference between shell and bash scripting?
Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.
Is scripting and coding the same thing?
How to check if the previous command was run successfully?
How will you copy a file from one machine to other?
How do you find out What is your shell?
Explain about "s" permission bit in a file?
What is awk in shell scripting?
Explain how you Automate your application using Shell scripting.
What is the equivalent of a file shortcut that we have a window on a linux system?
How does shell scripting work?
What is a shell in operating system?
How do I run a powershell script?