![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| read space filled file and replace text at specific position | COD | Shell Programming and Scripting | 6 | 04-21-2008 05:40 AM |
| How to read a specific section and modify within | kn.naresh | Shell Programming and Scripting | 2 | 04-18-2008 12:30 AM |
| read specific text from a log file | ragha81 | Shell Programming and Scripting | 4 | 10-17-2006 01:17 PM |
| How to read specific lines in a bulk file using C file Programming | rajan_ka1 | High Level Programming | 10 | 11-10-2005 03:29 AM |
| Shell Script to read specific lines in a file | varshanswamy | Shell Programming and Scripting | 5 | 08-22-2005 07:12 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Quote:
what does the file look like? Give us its format. |
|
||||
|
Quote:
Database Name AAALog BBB Log #===================================================================# XXXXXX S0000993.LOG S0000992.LOG YYYYYY S0002549.LOG S0002549.LOG I need to print only the difference of the S0000993.LOG and S0000992.LOG using Shell script. If we open 123.log then the output looks as above shown. Can u suggest how to do this? Thanks Sathish D V |
|
|||||
|
Quote:
Code:
awk '$2 != $3' 123.log Code:
XXXXXX S0000993.LOG S0000992.LOG |
|
||||
|
Quote:
Thank u very much. But i need one more help. I have shown a values as S0000993.LOG, here i need to remove 'S' and '.LOG' from the shown value. And only print '0000993'. Is it possible? If so can please explain? Thanks and Regards Sathish D V. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|