{"id":857,"date":"2021-02-09T00:53:42","date_gmt":"2021-02-09T08:53:42","guid":{"rendered":"http:\/\/gantovnik.com\/bio-tips\/?p=857"},"modified":"2021-02-09T00:56:11","modified_gmt":"2021-02-09T08:56:11","slug":"153-how-many-words-have-four-consecutive-vowels-using-grep","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2021\/02\/153-how-many-words-have-four-consecutive-vowels-using-grep\/","title":{"rendered":"#153 How many words have four consecutive vowels using grep?"},"content":{"rendered":"<p>#153 How many words have four consecutive vowels using grep?<\/p>\n<p>The square brackets mean list. The search is for the letter a or e or i or o or u. Then we add the brace brackets at the end enables multipliers. Having just the number 4 in the braces indicates that we are looking for four vowels consecutive row. Use this script for crosswords and Scrabble \ud83d\ude42<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\ngrep -E '&#x5B;aeiou]{4}' \/usr\/share\/dict\/words\r\n<\/pre>\n<p>Output:<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nHawaiian\r\nHawaiian's\r\nHawaiians\r\nIroquoian\r\nIroquoian's\r\nKauai\r\nKauai's\r\nKilauea\r\nKilauea's\r\nLouie\r\nLouie's\r\nMontesquieu\r\nMontesquieu's\r\nQuaoar\r\nQuaoar's\r\nRouault\r\nRouault's\r\naqueous\r\ngooier\r\ngooiest\r\nobsequious\r\nobsequiously\r\nobsequiousness\r\nobsequiousness's\r\nonomatopoeia\r\nonomatopoeia's\r\npharmacopoeia\r\npharmacopoeia's\r\npharmacopoeias\r\nplateaued\r\nplateauing\r\nqueue\r\nqueue's\r\nqueued\r\nqueues\r\nqueuing\r\nsequoia\r\nsequoia's\r\nsequoias\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#153 How many words have four consecutive vowels using grep? The square brackets mean list. The search is for the letter a or e or i or o or u. Then we add the brace brackets at the end enables multipliers. Having just the number 4 in the braces indicates that we are looking for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_lmt_disableupdate":"yes","_lmt_disable":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8,20],"tags":[],"class_list":["post-857","post","type-post","status-publish","format-standard","hentry","category-bash","category-linux"],"modified_by":"gantovnik","jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8bH0k-dP","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":861,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/02\/154-re-anchors-in-grep\/","url_meta":{"origin":857,"position":0},"title":"#154 RE anchors in grep","author":"gantovnik","date":"2021-02-09","format":false,"excerpt":"#154 RE anchors in grep The ^ or carat represents the start of the line and the $ represents the end of the line. If we want to query for words that end with \"cord\" we will use: [code language=\"python\"] grep 'cord$' \/usr\/share\/dict\/words [\/code] Output: [code language=\"python\"] Concord accord concord\u2026","rel":"","context":"In &quot;bash&quot;","block_context":{"text":"bash","link":"https:\/\/gantovnik.com\/bio-tips\/category\/bash\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":854,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/02\/152-listing-the-number-of-cpus-in-a-system-using-grep\/","url_meta":{"origin":857,"position":1},"title":"#152 Listing the number of CPUs in a system using grep","author":"gantovnik","date":"2021-02-09","format":false,"excerpt":"#152 Listing the number of CPUs in a system using grep [code language=\"python\"] grep -c name \/proc\/cpuinfo [\/code] Output: [code language=\"python\"] 8 [\/code]","rel":"","context":"In &quot;bash&quot;","block_context":{"text":"bash","link":"https:\/\/gantovnik.com\/bio-tips\/category\/bash\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":900,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/02\/162-loops-using-command-line-in-bash\/","url_meta":{"origin":857,"position":2},"title":"#162 Loops using command line in bash","author":"gantovnik","date":"2021-02-19","format":false,"excerpt":"With increment: [code language=\"python\"] $ for i in {1..20..2}; do echo $i; done [\/code] Output: [code language=\"python\"] 1 3 5 7 9 11 13 15 17 19 [\/code] [code language=\"python\"] $ for word in one two three; do echo $word; done [\/code] Output: [code language=\"python\"] one two three [\/code] C-like\u2026","rel":"","context":"In &quot;bash&quot;","block_context":{"text":"bash","link":"https:\/\/gantovnik.com\/bio-tips\/category\/bash\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":477,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/02\/extract-eigenvalues-from-nastran-f06-file\/","url_meta":{"origin":857,"position":3},"title":"#68 Extract eigenvalues from Nastran f06 file","author":"gantovnik","date":"2020-02-28","format":false,"excerpt":"grep -i -A 26 'R E A L E I G E N V A L U E S' my_fem.f06 > eigenvalues.txt","rel":"","context":"In &quot;bash&quot;","block_context":{"text":"bash","link":"https:\/\/gantovnik.com\/bio-tips\/category\/bash\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9440,"url":"https:\/\/gantovnik.com\/bio-tips\/2025\/04\/459-python-script-to-group-consecutive-numbers-into-ranges-like-in-msc-patran\/","url_meta":{"origin":857,"position":4},"title":"#459 Python Script to Group Consecutive Numbers into Ranges Like in MSC Patran","author":"gantovnik","date":"2025-04-20","format":false,"excerpt":"This Python script reads a text file containing a list of numbers (such as node or element IDs), sorts them, removes duplicates, and groups consecutive numbers into compact ranges - just like MSC Patran's range format. It's a handy tool for preprocessing or organizing large ID lists efficiently. def read_numbers(filename):\u2026","rel":"","context":"In &quot;patran&quot;","block_context":{"text":"patran","link":"https:\/\/gantovnik.com\/bio-tips\/category\/patran\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2219,"url":"https:\/\/gantovnik.com\/bio-tips\/2024\/06\/431-hypermesh-python-script-to-create-nodes-using-coordinates-from-csv-file\/","url_meta":{"origin":857,"position":5},"title":"#431 HyperMesh python script to create nodes using coordinates from csv file","author":"gantovnik","date":"2024-06-24","format":false,"excerpt":"Finally, I read how to write a script for HyperMesh in python. In this example, the script reads the coordinates of points from a cvs file. [code language=\"python\"] import os import hm import hm.entities as e from hwx import gui import csv model=hm.Model() os.chdir(r\"D:\\projects\\wordpress\\ex431\") with open('ex431_coordinates.csv', mode ='r') as file:\u2026","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex431.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/857","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/comments?post=857"}],"version-history":[{"count":0,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/857\/revisions"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}