![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to parse through a file and based on condition form another output file | sivasu.india | UNIX for Advanced & Expert Users | 6 | 02-28-2008 04:59 AM |
| awk output to file | stonemonolith | Shell Programming and Scripting | 2 | 01-19-2008 02:27 AM |
| Creation of output file from list of file | ganapati | Shell Programming and Scripting | 7 | 01-18-2008 07:55 PM |
| compare file size from a output file from a script | moustik | Shell Programming and Scripting | 7 | 11-07-2007 10:17 AM |
| appending to sed output of one file into the middle of file | go4desperado | Shell Programming and Scripting | 5 | 02-05-2007 02:20 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Output File
Hi there,
I am having an output file resulting from a script, this output file looks as follow: 10 Account1 20 Account2 89 Account3 Now i have another file which includes all the accounts (i.e. all acounts which have records in the mentioned output file and the rest of acoounts which have no records)...what i want to do is the following: I want to generate a final out put file which have all the accounts and near to each account it mention the total number of recrods resulted from the above output fle, and if there is any account which have no records in the above output file, then in the final output file the value near to that account shall be 0 Any idea how to do that?? Thanks in advance. |
|
||||
|
It will just include the name of the accounts in one coloum (this file name will be output1).....and as i explained before, i am having also another file resulted from a shell script (output2)which have accounts and their records but for sure not all accounts listed in the above file (output1)....so its like a comparison between output1 & output2......all the accounts mentioned in output2 along with their records will be displayed with no change, for those accounts which are mentioned in output1 but are found in output2 will be diplayed with number "0" displayed near them.......
Hope i explained it in a good way...Thx |
|
||||
|
If you dont mind, can you explain to me how does the below work, i am not that much expert in unix. I want to try it but at least i need to understand what each parameter mean so that i will be able to load it to my script.
Quote:
Thanks for your help. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|