Помогите с регуляркой для awk

Discussion in 'Linux, Freebsd, *nix' started by smasher, 18 Mar 2022.

  1. smasher

    smasher New Member

    Joined:
    4 Apr 2021
    Messages:
    24
    Likes Received:
    0
    Reputations:
    0
    На картинке моя проблема. Оно не работает. Что не так?
     

    Attached Files:

  2. b3

    b3 Banned

    Joined:
    5 Dec 2004
    Messages:
    2,174
    Likes Received:
    1,157
    Reputations:
    202
    и кстати разделитель зачем указан ":" ?
    Code:
    $ echo "dfdfgd dfgdgdg - 25316 dfdf dfdf" | awk '{ if($4 > 25315){print $1} }'
    dfdfgd
    
     
    Bs_Ru likes this.