Skip to main content

Thread: (simple?) regular expression problem using grep


i want sift error messages output of "dmesg". trying use grep this. neither
code:
ubuntu@ubuntu:~$ dmesg | grep -i err
nor
code:
ubuntu@ubuntu:~$ dmesg | grep [ee][rr][rr]
give me want (they should identical, right?), because matches "interrupt", example. so, tried specify beginning of word (including occurances of "*error*"). result both
code:
ubuntu@ubuntu:~$ dmesg | grep [ *][ee][rr][rr]
and
code:
ubuntu@ubuntu:~$ dmesg | grep \b[ee][rr][rr]
is empty. first attempt specify string starts space or asterisk. second attempt specifiy string begins "word boundary".

suggestions?

code:
dmesg | grep -ie err
code:
dmesg | grep -ie error
code:
man grep
perhaps haven't errors reported through dmesg, trying find?


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] (simple?) regular expression problem using grep


Ubuntu

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts