Afficher un message
Vieux 26/03/2008, 14h12   #2
muhammadshoaibhasan@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: display in a tree structure

dear, u can have this out of display by having a simple bash script.

On Mar 26, 4:06pm, "Vakayil Thobias" <vakayil.thob...@alcatel-
lucent.com> wrote:
> I have to display the data from a file in tree structure(ksh).
> The file format is as follows(first field parent, second field child) :
>
> PM01 PM02
> PM01 PM1A
> PM02 PM03
> PM03 PM04
> PM04 PM05
> PM04 PM06
> PM1A PM1B
> PM1A PM1C
>
> The output should be like this :
> PM01 -- PM02 -- PM03 -- PM04 -- PM05
> PM06
> PM01 PM1A -- PM1B
> PM1C
>
> Anybody have idea ?
>
> Regards,
> Thobias


  Réponse avec citation
 
Page generated in 0,04580 seconds with 9 queries