Shell how can i grep a particular word in a sentence : i want to grep some part of the sentence for example: /hana/new/register in this i need to grep just hana 

How can i do that in shell.

I am new to shell

Thanks and regards,
samarth