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 k shell?
Is cmd a shell?
What does chmod do?
What is difference between bash and shell?
What are the disadvantages of shell scripting?
How do I run a script on mac?
Why is shell scripting important?
Where are cowrie shells found?
How will you pass and access arguments to a script in linux?
What is the purpose of scripting?
How does path variable work?
How do we create command aliases in a shell?
What is the conditional statement in shell scripting?
Can shell script run on windows?
What is another name for a bash shell script that you might see?