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
Is shell scripting useful?
How can you find out how long the system has been running?
What are zombie processes?
How do I start a shell script?
Write a shell script to get current date, time, user name and current working directory.
What is the use of .sh file?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
Is shell a scripting language?
What is the syntax of while loop in shell scripting?
How to calculate the number of passed arguments?
What is an inode block?
Write the syntax for "if" conditionals in linux?
What is awk in shell script?
How do I read a .sh file?