linux - grep never returns anything unless I put a * or . on the end - why? -
if put * or . on end of grep command, results instantly. however, if don't, command never returns anything.
i'd appreciate if tell me why, or direct me source includes information! looking online all, talks searching period or asterisk in search. examples don't include * or ., , ones don't tell me they're doing.
thanks!
without list of files search, grep reads stdin default. e.g.
$ grep -o a.. appears freeze, waiting input app ars act ait ^d
by way, grep’s more useful cousin, ack, you’d expect. :)
Comments
Post a Comment