[lkml]   [2009]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] kconfig: simplification of scripts/extract-ikconfig
    On Thursday 2009-07-09 10:38, Amerigo Wang wrote:
    | I appologize for my delay, I totally missed this thread, sorry.
    | I just tested it, it works! So,
    | Tested-by: WANG Cong <>

    Great, thanks.

    | But, I still don't understand the behavior of 'grep -abo',
    | please try the following commands:
    | echo -e '\x01\x02\x03\x04' > test.bin
    | od -x test.bin
    | tr $'\x01\x02\x03\x04' '1234' < test.bin | grep -abo '4'
    | Am I missing something here??

    The output with grep-2.5.3 is 3:4, which means that the string "4" was
    found at offset 3 (0-based). With grep-2.5.1, you get 0:4, which means
    that the line containing the string "4" has offset 0. The "tr" commands
    in the script ensure that the patterns we are looking for are always at
    the start of a line, so that it doesn't matter which version of grep is


     \ /
      Last update: 2009-07-09 10:29    [W:0.021 / U:1.576 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site