Originally Posted by divyashree
This should work definitely as you want
ls |egrep '^..z.*$'
ls |sed -n '/^..z.*$/p'
Yes, it did the trick. Thank you.
Thank you all for your replies. Now i have lot of reading on my evenings :-)