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


Please Help Members By Posting Answers For Below Questions

What are types of shells?

543


Explain about the exit command?

566


When should shell programming/scripting not be used?

590


What is shell variable?

525


What is sudo command?

548






Is shell scripting a programming language?

574


What does egrep mean?

572


How do I stop script errors?

573


How to debug the problems encountered in the shell script/program?

626


What is bash command used for?

579


how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com

2105


What are zombie processes?

569


What is shell scripting used for?

570


Explain about stdin, stdout and stderr?

629


What is echo $shell?

618