Spliting strings with awk / nawk

I mainly use nawk to extract elements from a string where I know the position (eg to get just the filenames when running a grep and I’m just too lazy to remember the correct grep syntax). so, to extract field number x from strings in where the field separator...

Checking for a valid domainname

Very quick function to test a domain name is valid:     function validDomain($domain)     {         // Test domain is actually valid         if (preg_match(‘/^[a-z]+([a-z0-9-]*[a-z0-9]+)?(.([a-z]+([a-z0-9-]*[a-z0-9]+)?)+)*$/i’, $domain))         {       ...

John Woodward (1815 – 1898)

Timeline 1815 Born on 21st November in Littleover, Derby, the son of Edward Woodward & Ann Green 1817 Christened on 6th July in Littleover 1820 Brother George born 1823 Wife Eliza Pikett born in Boston, Lincolnshire, daughter of John Pikett and Anne Bowser 1846...

Charles Down Mayne (1808 – 1883)

Born 12 March 1808, Colyton, Devon, England, Died 23 March 1883, Ottery St Mary, Devon England. Charles Mayne (The ‘Down’ does not appear until his first marriage) was born the ilegitimate son of Francis Mayne nee Stedham in Colyton, Devon on 23 March...