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
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
Is shell scripting a programming language?
What is bash used for?
Why are there shells on the beach?
What language is shell scripting?
What makes c shell a more preferable option than the bourne shell?
What does $@ mean in shell?
What is the fastest scripting language?
What is c in shell script?
What is a program shell?
What happens on a system call?
What is shell variable?
Can shell script run on windows?
How does path variable work?
What are the default permissions of a file when it is created?