Hacker News new | past | comments | ask | show | jobs | submit login

This is a useful feature to have when writing one liners e.g.

    % cat words
    all
    these
    worlds
    are
    yours
    
Which I believe is one of the reasons Perl allows it:

    % perl -ne 'print unless /^a/' words
    these
    worlds
    yours
And Ruby does too:

    % ruby -ne 'print unless /^a/' words
    these
    worlds
    yours



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: