I have a input file which looks like
john /ghsgd/kjhfdf/kjdfkjd
john /ruey/oieroiern/oieroeiroi
jim /kjskksj/kdjfkdjf/kdjfkjd
john /jdkfjd/kjdfdfjh/fjgfjg/kdfikdhf
jim /gdhfgdf/lgkfjg/orit
mike /kdjfjdk/jhjdfhjdf/jdhfjdhf/jhdjfhdjf
..............
................
many other names and many other paths. I am trying for a loop where in i get an output which is organised as below.
I would like to have an output file which looks like
===============================
john /ghsgd/kjhfdf/kjdfkjd
john /ruey/oieroiern/oieroeiroi
john /jdkfjd/kjdfdfjh/fjgfjg/kdfikdhf
====================================
jim /kjskksj/kdjfkdjf/kdjfkjd
jim /gdhfgdf/lgkfjg/orit
====================================
mike /kdjfjdk/jhjdfhjdf/jdhfjdhf/jhdjfhdjf
=====================================
......................
......................
===================================
If anyone could help me that would be great.
Thanks
Rao
john /ghsgd/kjhfdf/kjdfkjd
john /ruey/oieroiern/oieroeiroi
jim /kjskksj/kdjfkdjf/kdjfkjd
john /jdkfjd/kjdfdfjh/fjgfjg/kdfikdhf
jim /gdhfgdf/lgkfjg/orit
mike /kdjfjdk/jhjdfhjdf/jdhfjdhf/jhdjfhdjf
..............
................
many other names and many other paths. I am trying for a loop where in i get an output which is organised as below.
I would like to have an output file which looks like
===============================
john /ghsgd/kjhfdf/kjdfkjd
john /ruey/oieroiern/oieroeiroi
john /jdkfjd/kjdfdfjh/fjgfjg/kdfikdhf
====================================
jim /kjskksj/kdjfkdjf/kdjfkjd
jim /gdhfgdf/lgkfjg/orit
====================================
mike /kdjfjdk/jhjdfhjdf/jdhfjdhf/jhdjfhdjf
=====================================
......................
......................
===================================
If anyone could help me that would be great.
Thanks
Rao