Home Man
Search
Today's Posts
Register

If you're not sure where to post a Unix or Linux question, post it here. All unix and Linux beginners welcome in this forum!

Building hierarchy with the list

Login to Reply

 
Thread Tools Search this Thread
# 15  
Old 10-05-2017
Works with the example. Not sure why it is not doing on the below file
Code:
~  179341~1704503~1704480~1818623254_TOTAL ->MANUAL ->COL 
~ 179341~1704504~1704480 ~1883140245_TOTAL ->MANUAL ->PRIV
~ 179341~1704505~1704480 ~1978359756_TOTAL   
~ 179341~1704506~1704480 ~2058772066_TOTAL ->MANUAL ->ORAL-B PRO HEALTH GS B  
~ 179341~1704507~1704480 ~2138579186_TOTAL ->PPNNH
~ 179341~1704508~1704480 ~257669199_TOTAL ->POWER TOOTHBRUSH->PPNNH   
~ 179341~1704509~1704480 ~359869040_TOTAL ->RRRLOP
~ 179341~1704510~1704480 ~361375824_TOTAL ->POWER TOOTHBRUSH->AO BRANDS  
~ 179341~1704511~1704480 ~372808786_TOTAL ->MANUAL ->REACH 
~ 179341~1704512~1704480 ~456690129_TOTAL ->BATTERY TOOTHBRUSH   
~ 179341~1704513~1704480 ~475919266_TOTAL ->MANUAL ->COL KIDS GSB  
~ 179341~1704514~1704480 ~481202389_TOTAL ->MANUAL ->IRRR COMPLETE GSB   
~ 179341~1704515~1704480 ~655296953_TOTAL ->POWER TOOTHBRUSH->COL
~ 179341~1704516~1704480 ~704925680_TOTAL ->MANUAL ->IRRR INDICATOR GSB  
~ 179341~1704517~1704480 ~775116444_TOTAL ->POWER TOOTHBRUSH->IRRR 
~ 179341~1704518~1704480 ~939829720_TOTAL ->REFILL HEADS 
~ 179341~1704480~  0 ~TOTAL CCCC 
~ 179341~1704481~1704480 ~-1235133484_TOTAL ->MANUAL ->IRRR PULSAR GSB   
~ 179341~1704482~1704480 ~-1308801667_TOTAL ->MANUAL ->IRRR  
~ 179341~1704483~1704480 ~-1366207571_TOTAL ->POWER TOOTHBRUSH->PRIV
~ 179341~1704484~1704480 ~-1477892976_TOTAL ->POWER TOOTHBRUSH->IOPP SONICARE 
~ 179341~1704485~1704480 ~-1565345926_TOTAL ->MANUAL   
~ 179341~1704486~1704480 ~-1600570243_TOTAL ->MANUAL ->AO BRANDS   
~ 179341~1704487~1704480 ~-172680236_TOTAL ->BATTERY TOOTHBRUSH->PPNNH
~ 179341~1704488~1704480 ~-1838093819_TOTAL ->MANUAL ->FIREFLY 
~ 179341~1704489~1704480 ~-1903630442_TOTAL ->COL
~ 179341~1704490~1704480 ~-2042984783_TOTAL ->POWER TOOTHBRUSH   
~ 179341~1704491~1704480 ~-2137023982_TOTAL ->MANUAL ->P&G KIDS GSB
~ 179341~1704492~1704480 ~-258140860_TOTAL ->MANUAL ->COL  
~ 179341~1704493~1704480 ~-408734766_TOTAL ->REFILL HEADS->PPNNH  
~ 179341~1704494~1704480 ~-434977163_TOTAL ->POWER TOOTHBRUSH->ORPRR
~ 179341~1704495~1704480 ~-541283452_TOTAL ->MANUAL ->CREST
~ 179341~1704496~1704480 ~-572275295_TOTAL ->MANUAL ->PPNNH 
~ 179341~1704497~1704480 ~-611408278_TOTAL ->PRIV   
~ 179341~1704498~1704480 ~-766208436_TOTAL ->MANUAL ->IRRR 3DW GSB   
~ 179341~1704499~1704480 ~1321224044_TOTAL ->RECHARGEABLE TOOTHBRUSH 
~ 179341~1704500~1704480 ~1452856872_TOTAL ->RECHARGEABLE TOOTHBRUSH->PPNNH  
~ 179341~1704501~1704480 ~1684494481_TOTAL ->MANUAL ->COL MAX GSB  
~ 179341~1704502~1704480 ~1733685778_TOTAL ->MANUAL ->COL 360 GSB

---------- Post updated at 07:06 PM ---------- Previous update was at 06:06 PM ----------

Again my mistake the ~ at start caused the issue. It worked..Thanks a million
# 16  
Old 10-05-2017
For the future - PLEASE
- provide representative samples - AND STICK TO THEM!
- provide a detailed and specific description of your problem - DON'T reference ID not explaining what that is, explain what you need (sorting / grouping / whatever) EVEN IF IT TAKES A FEW MORE LINES OF TEXT.
- Don't let helpers guess what you want.

I recognize people in here are struggling with the "language barrier" - I do so myself - but that shouldn't keep them from telling necessary details from gaping info holes from blabber.

Last edited by RudiC; 10-05-2017 at 11:16 AM..
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
DB2 Query to pick hierarchy values Perlbaby Programming 6 08-28-2018 08:02 AM
Rsync building file list/catalog path/location glev2005 UNIX for Advanced & Expert Users 1 01-11-2010 10:45 AM
building table from list f_o_555 Shell Programming and Scripting 2 12-15-2009 03:46 AM
Script calling hierarchy chaitu_inmage Shell Programming and Scripting 4 08-27-2008 07:29 AM
Why are so many dirs used in solaris hierarchy? wrapster Solaris 1 06-19-2008 10:40 AM
Linux Filesystem Hierarchy tayyabq8 Tips and Tutorials 0 01-31-2007 02:55 AM
cp without maintaining the soucre directory tree hierarchy 435 Gavea UNIX for Dummies Questions & Answers 2 03-03-2006 11:47 AM
script to archive certain folders in a hierarchy medazinol Shell Programming and Scripting 3 04-28-2005 10:45 AM


All times are GMT -4. The time now is 12:48 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password