If you have a string "one two three", which shell command
would you use to extract the strings?
Answer Posted / seshadri sethi
echo $string | cut -d” ” -f1
echo $string | cut -d” ” -f2
echo $string | cut -d” ” -f3
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is echo in shell?
What is sudo command?
What is a file basename?
What is .sh file in mac?
What are the zombie processes?
How do I debug a shell script?
What is mac default shell?
Why are there shells on the beach?
Explain about stdin, stdout and stderr?
Is shell a part of kernel?
Can you write a script to portray how set –x works?
What is the use of "$#" in shell scripting?
Is shell scripting difficult?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
Why should we use shell scripts?