Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What language is shell scripting?

1035


Differentiate between ‘ and ” quotes.

1176


How does ls command work?

1038


Write a script to print the first 10 elements of fibonacci series.

2351


What is the conditional statement in shell scripting?

1239


Explain about echo command?

1105


What is bash used for?

1017


What is difference between bash and shell?

1112


What is shell prompt?

1023


What is an sh file?

946


What is awk in shell script?

1234


How do I start a shell script?

1214


What is the difference between grep and egrep?

1144


Is shell scripting useful?

1061


What is basename in shell script?

1062