Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Building hierarchy with the list Post 303004616 by arunkumar_mca on Thursday 5th of October 2017 09:36:56 AM
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
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

script to archive certain folders in a hierarchy

I'm new to shell scripting and I'm having a tough time figuring out how to script something. Can anyone help? Here is my setup and what I want to do: A directory contains a list of projects by year (2000, 2001, etc) and customers (01-001) all of which have the same internal directory setup... (3 Replies)
Discussion started by: medazinol
3 Replies

2. UNIX for Dummies Questions & Answers

cp without maintaining the soucre directory tree hierarchy

Hi guys. I'm willing to copy a specific file system hierarchy, but I would not like to maintain the directory tree organization. For example: Let's say /a/b/c is the fs I'm wanting to copy to my destination, and that c is a directory with 30 files, 10 on /a/b/c , 10 on a/b/c/c1 and 10... (2 Replies)
Discussion started by: 435 Gavea
2 Replies

3. Tips and Tutorials

Linux Filesystem Hierarchy

Hi, Please have a look this: http://tldp.org/LDP/Linux-Filesystem-Hierarchy/Linux-Filesystem-Hierarchy.pdf I think this can be very useful for a beginner/intermediate level user to understand the filesystem hierarchy and as well as it can be used as a reference to various linux commands and... (0 Replies)
Discussion started by: tayyabq8
0 Replies

4. Solaris

Why are so many dirs used in solaris hierarchy?

Hi all, I would like to know the difference between the different dir structures present in solaris!!! Meaning what does /usr contain, /etc ,/opt/ ,so on... I know what /usr and /etc are used for. But why are /opt /bin /sbin /var and many more that i have missed I would appreciate if... (1 Reply)
Discussion started by: wrapster
1 Replies

5. Shell Programming and Scripting

Script calling hierarchy

If a.sh calls b.sh, how can we know inside b.sh that it was called by a.sh? (4 Replies)
Discussion started by: chaitu_inmage
4 Replies

6. Shell Programming and Scripting

building table from list

Hi, I have a file with the following structure M17XX-050-01-001 1100000000 A16 1.341E+05 ... B18 3.084E+02 total 1.344E+05 XY35 5.694E+03 ... XY241 6.725E+02 total 9.897E+05 Wr81Z 5.195E+00 ... Wr91Z 1.029E+02 Wr92Z 1.285E+02 total 9.897E+05 M17XX-050-01-001 1010000000... (2 Replies)
Discussion started by: f_o_555
2 Replies

7. UNIX for Advanced & Expert Users

Rsync building file list/catalog path/location

Where is the file list created by rsync when it says building file list ? (1 Reply)
Discussion started by: glev2005
1 Replies

8. Programming

DB2 Query to pick hierarchy values

Dear Team I am using DB2 v9 . I have a condition to check roles based on hierarchies like below example. 1.Ramesh has Roles as "Manager" and "Interviewer" 2.KITS has Roles as "Interviewer" 3.ANAND has Roles as "Manager" and "Interviewer" select * FROM TESTING NAME ... (6 Replies)
Discussion started by: Perlbaby
6 Replies
MANUAL 
PAGES(5) BSD File Formats Manual MANUAL PAGES(5) NAME
manpages -- An introduction to manual pages DESCRIPTION
Manual pages (often shortened to "man pages") are a means of providing documentation on the command line. Most manual pages describe low- level programming interfaces, command-line tools, and file formats. This manual page is intended to help you learn about manual pages, their purpose, their style, and their overall layout so that you can bet- ter take advantage of the content that they provide. MANUAL PAGE STYLE
Because manual pages are written by software engineers from many different companies and organizations around the world, the format of these manual pages varies somewhat from page to page, as does the style. In general, however, manual pages are written to be as concise as possible. While this makes them a somewhat difficult place to start as a new programmer, this is intentional. They are not intended to replace conceptual documentation such as books on programming. They are intended primarily to provide a quick reference for people who are already somewhat familiar with the subject. Some manual pages provide links to outside websites. You can often find more thorough conceptual documentation, sample code, and other use- ful information at these websites. MANUAL PAGE SECTIONS
The manual is divided into sections. Each section covers a particular subject area. The major manual page sections are: 1 General User Commands 2 System Calls 3 Library Routines (*) 4 Special Files and Sockets 5 File formats and Conventions 6 Games and Fun Stuff 7 Miscellaneous Documentation 8 System Administration 9 Kernel and Programming Style n Tcl/Tk (*) Excludes library routines that merely wrap system calls. Those routines are covered in section 2. The majority of commonly used commands appear in sections 1 and 8 of the manual, while most programming information is found in sections 2 and 3. These subject areas may be further subdivided. For example, manual section 3 was originally intended to hold documentation in the standard C library but has been expanded to include functions in other C language libraries, such as section 3ssl (OpenSSL functions). Section 3 has even been expanded to include other programming languages. For example, section 3pm contains documentation for Perl modules). It is common to have multiple manual pages with the same name but different section numbers. This usually occurs when a command shares a name with a C function or system call that does something very similar. To avoid any confusion, manual pages are commonly referred to in the form name(number), in which the number is the section number. MANUAL PAGE TOOLS
You can read manual pages in a number of ways. The most common way to read manual pages is with the man(1) tool from the command line. For example, typing "man man" displays the manual page for the man tool. If there are multiple manual pages with the same name but different section numbers (for example, open(1) and open(2)), you can specify a section number when requesting the page. For example, the command "man 2 open" displays the manual page for the "open" system call from sec- tion 2 of the manual. You can also read manual pages from within Xcode by choosing the "Open man page..." option in the Help menu, or within your choice of web browsers by going to <http://developer.apple.com/documentation/Darwin/Reference/ManPages/>. In addition to searching for manual pages on the web, the manual page architecture also provides two useful command-line tools for searching the manual pages: whatis and apropos. The whatis(1) command searches the manual page headings (command and function names) for a word. If that word appears in its entirety, it shows the matching name and abstract. For example, typing "whatis man" returns results for man and man.conf. This is mostly of interest if you want to read an abstract for a particular command. The apropos(1) command is a much more user-friendly version of whatis. It searches the same database, but searches the manual page abstracts as well as the titles. Unlike the whatis command, apropos returns results for partial word matches. NOTE: Both apropos and whatis depend on a database to provide information. This database is updated periodically. On fresh installations, however, it may not be present. If apropos and whatis are not working correctly, you should run the following command as an admin user: sudo /usr/libexec/makewhatis This will rebuild the database. Enter your admin password when prompted. MANUAL PAGE STRUCTURE
Manual pages do not have a fixed structure. However, most manual pages do follow certain conventions. Manual pages typically begin with a NAME section, which contains the name of a command or function and a short abstract. Next, manual pages typically include a SYNOPSIS section, which describes how to use the command or function. For functions, the syntax gen- erally contains the necessary include directives, followed by the function declarations themselves. For commands, the syntax is explained in MANUAL PAGE SYNTAX. After the SYNOPSIS section, you will generally find a DESCRIPTION section, followed by an OPTIONS section (which explains the flags from the SYNOPSIS section. You may find sections such as ENVIRONMENT HISTORY, BUGS, CONFORMING TO, AUTHOR, and COPYRIGHT. Finally, most manual pages end with a section called SEE ALSO, which includes the names and section numbers of related manual pages. MANUAL PAGE SYNTAX
In manual page syntax, anything in a normal text font is required text. Anything in a boldface font is a flag or a subcommand. Anything underlined is a user-specified argument such as a filename. Any argument surrounded by brackets is considered to be optional. For example, [ filename ] would indicate an optional filename argument. Flags, arguments, or subcommands separated by a vertical separator (|) are mutually exclusive. For example, if -a turns on an option and -b turns off the option, the syntax for this command might be -a | -b. In some cases, you may even see entire groups of arguments wrapped with brackets and separated by a vertical separator. This is one way of showing that a command has more than one valid syntax. In other manual pages, this is expressed by having multiple lines in the synopsis, each of which begins with the command name. The separated format is more common (and more readable), but is not always possible for commands with particularly complex syntax. Finally, the most important notational convention is the use of the ellipsis (...). This indicates that additional arguments may be added at this point. Depending on the author, you may see this written in one of two ways: argument [ argument... ] argument... SEE ALSO
For more information on manual pages, see man(1), intro(1), intro(2), intro(3), intro(5), intro(7), intro(8), intro(9), and the developer documentation website at <http://developer.apple.com/documentation/Darwin/Reference/ManPages/>. Mac OS X April 26, 2007 Mac OS X
All times are GMT -4. The time now is 10:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy