Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2009
    Posts
    13

    Unanswered: command to Grep the particular word

    sample.log
    ----------
    Verifying file ABC.TXT ...
    Count check OK for file ABC.TXT
    Check File rowcount: 919526 , trailer rowcount: 919526
    Bulk Copy into Target table TABLE_ABC started Mon Apr 6 04:16:52 EDT 2009

    In the sample.log
    Check File row count is the count for text file ABC.TXT and
    trailer count is the coutnt for TABLE_ABC table

    we need the grep command or script to grep the count like this

    ABC.TXT 919526 TABLE_ABC 919526

  2. #2
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    I would use a scripting language like AWK or Perl for this. 'grep' won't help you there because it only searches for matching/non-matching lines.
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •