grep with regex question





I am using grep inside a bash script and need to display all lines in
a file without *_00*.mdl

fm_00.mdl
fm_89.mdl
fm.mdl

here I would only want to show the fm.mdl line



I tried this :
grep ".[^_0-90-9]." test.txt

what is the proper syntax

.



Relevant Pages

  • Re: grep with regex question
    ... I am using grep inside a bash script and need to display all lines in ... be any character that wouldn't be any of _ or a decimal digit. ...
    (comp.unix.questions)
  • Re: problem with Xorg
    ... cat /var/log/Xorg.0.log | grep EE ... NIVIDIA: Multiple displays connected, ...
    (Ubuntu)
  • Re: Simple bash script to grep files for bad keywords
    ... >> I am trying to write a simple bash script that will grep all files ... > Use xargs, since it will buy you the extra feature of being able to ... > effectively forcing grepto print the filename of this one file ...
    (freebsd-questions)
  • Simple bash script that I cant figure out....
    ... I'm trying to write a simple bash script that's turning out to be a ... I have a multi-head system with 3 heads and 3 sound cards. ... physical head 1 always gets DISPLAY 1, ...
    (comp.os.linux.misc)
  • grep bash script weirdness
    ... Given the following bash script "findit.sh": ... Try `grep --help' for more information." ... how can I avoid them to appear? ... Instead of this command in the script: ...
    (comp.unix.shell)