egrep -ha 'Hello' a.txt | sort -u -k1.1,1.5
HelloXHelloYHello World.Hello World.Hello World.Hello World.
bash-4.1$ egrep -ha 'Hello' a.txt | sort -u -k1.1,1.5 HelloX