Thread: (simple?) regular expression problem using grep
i want sift error messages output of "dmesg". trying use grep this. neither
norcode:ubuntu@ubuntu:~$ dmesg | grep -i err
give me want (they should identical, right?), because matches "interrupt", example. so, tried specify beginning of word (including occurances of "*error*"). result bothcode:ubuntu@ubuntu:~$ dmesg | grep [ee][rr][rr]
andcode:ubuntu@ubuntu:~$ dmesg | grep [ *][ee][rr][rr]
is empty. first attempt specify string starts space or asterisk. second attempt specifiy string begins "word boundary".code:ubuntu@ubuntu:~$ dmesg | grep \b[ee][rr][rr]
suggestions?
code:dmesg | grep -ie errcode:dmesg | grep -ie errorperhaps haven't errors reported through dmesg, trying find?code:man grep
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] (simple?) regular expression problem using grep
Ubuntu
Comments
Post a Comment