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
How to check if the previous command was run successfully?
How do I save a powershell script?
Is shell a part of kernel?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
How to use arguments in a script?
What are script files?
Where is bash history?
What are the different variables present in linux shell?
What does echo mean in scripting?
How does shell scripting work?
Is cmd a shell?
What is shell geeksforgeeks?
How can the contents of a file inside jar be read without extracting in a shell script?
how will you find the total disk space used by a specific user?
Is powershell a language?