At least in the example given the will work. Now this does not work if you need to fin this in the middle of line but you werent very specific on this. Note it's the number of matching lines, not the number of matches. This states that anything that starts with the word test1 as the first line. Suppress normal output instead print a count of matching linesįor each input file. Sorry, but I'm going from memory here, I don't work in a Solaris shop, and can't test it there.Īlso note that the man page on my current system for grep says -c, -count Obviously, if you find other chars that you want to consider as word chars, maybe the '_' char?, add that to both sides. YOu're using -i to ignore case, so you don't have to use. This says, match chars any number (including none), before 3 vowels, followed by any number of chars (including none). To meet your need of words with 3 vowels in a row and using old/square reg-ex long hand, try egrep -i -c '**' full.html only lines which match regular expression (emulates grep) sed -n /regexp/p. 1 word-boundaryįollowed by any number of any chars (including blanks and vowels)įollowed by any number of any chars (including blanks and vowels), tr -d r outfile GNU tr version 1.22 or.In any case, your regexp '\b.*.*\b' reads to my eye as. That dir used to have the newest versions, short of having something like /opt/gnu install added. You'll have to consult your solaris man-pages to know if your egrep supports any/all/some of the GNU like extensions.Äoes your system have /usr/xpg4/bin ? If yes, make sure your MANPATH includes /usr/xpg4/man.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |