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 language is shell scripting?
Differentiate between ‘ and ” quotes.
How does ls command work?
Write a script to print the first 10 elements of fibonacci series.
What is the conditional statement in shell scripting?
Explain about echo command?
What is bash used for?
What is difference between bash and shell?
What is shell prompt?
What is an sh file?
What is awk in shell script?
How do I start a shell script?
What is the difference between grep and egrep?
Is shell scripting useful?
What is basename in shell script?