User Tools

Site Tools


journal:spring2019:ballen18:week7

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

journal:spring2019:ballen18:week7 [2019/03/07 02:21]
127.0.0.1 external edit
journal:spring2019:ballen18:week7 [2019/03/13 07:57] (current)
ballen18
Line 1: Line 1:
-=====unix week7=====+=====UNIX WEEK 7=====
 ---- ----
-====MONTH DayYEAR====+====MARCH 132019==== 
 + 
 +HTML 
 + 
 +Common Tags: 
 + 
 +<p> = Paragraph 
 + 
 +<b> = Bold 
 + 
 +<​center>​ 
 + 
 +<font size=” “> 
 + 
 +<font color=” “> 
 + 
 +<br> = line break 
 + 
 +bgcolor="#??????"​ 
 + 
 +<​table><​caption>​Phone numbers</​caption>​ 
 + 
 +<​thead>​ 
 + 
 +<​tr>​ 
 + 
 +<​th>​Name</​th>​ 
 + 
 +<th colspan="​2">​Heater</​th>​ 
 + 
 +</​tr>​ 
 + 
 +</​thead>​ 
 + 
 +<​tbody>​ 
 + 
 +<​tr>​ 
 + 
 +<​td>​Bill</​td>​ 
 + 
 +<​td>​577854</​td>​ 
 + 
 +<​td>​577855</​td>​ 
 + 
 +</​tr>​ 
 + 
 +<​tr>​ 
 + 
 +<​td>​Bob</​td>​ 
 + 
 +<​td>​577856</​td>​ 
 + 
 +<​td>​577857</​td>​ 
 + 
 +</​tr>​ 
 + 
 +</​tbody>​ 
 + 
 +<​tfoot>​ 
 + 
 +<​tr>​ 
 + 
 +<​td>&​nbsp;</​td>​ 
 + 
 +<​td>​Personal</​td>​ 
 + 
 +<​td>​Office</​td>​ 
 + 
 +</​tr>​ 
 + 
 +</​tfoot>​ 
 + 
 +</​table>​ 
 + 
 + 
 +Regular Expression: (Regex) 
 + 
 +Types: Basic & Extended 
 + 
 +Basic 
 + 
 +^ = Match start of line 
 + 
 +$ = Match end of line 
 + 
 +\? = Match 0 or 1 of previous 
 + 
 +. = Match any single symbol 
 + 
 +* = Match 0 or more previous 
 + 
 +[ ] = Character Class-Match any one of enclosed 
 + 
 +[^ ] = Inverted Character Class-Do not match 
 + 
 +\< = Match start of word 
 + 
 +\> = Match end of word 
 + 
 +(use: vim, grep, sed) 
 + 
 + 
 +Extended 
 + 
 ++ = 1 or  more of the previous 
 + 
 +| = or 
 + 
 +( ) = Group 
 + 
 +\( \)= Regex group 
 + 
 +(use: vim, egrep, sed) 
 + 
 + 
 +Basic Examples 
 + 
 +#Find words with 5 letters--- 
 + 
 +Lab46: cat words | grep ‘^….$’ | less 
 + 
 +#Find words with 5 letters contain vowels--- 
 + 
 +Lab46: cat words | grep ‘^.[aeiouy].[aeiouy].$’ | head -20 
 + 
 +#Lines with 4 or more symbols. Third symbol is not rstlne or lowercase 
 + 
 +Lab46: cat words | grep ‘^..[^rstlne]..*$’ | wc –l 
 + 
 +#All words 6 or more symbols in length. Contains mMg somewhere in middle 
 + 
 +Lab46: cat words | grep ‘…..[mMg].$’ | wc –l 
 + 
 + 
 +Extended Examples 
 + 
 +#All words that end in “ing or “ed” 
 + 
 +Lab46: cat words | egrep ‘(ed|ing)$’ | wc –l 
 + 
 +#How many even symbol words are there in dictionary file 
 + 
 +Lab46: cat words | egrep ‘^(..)+$’ | wc -l
  
-Filler text- your entry goes here; remove this line to receive full credit. 
  
journal/spring2019/ballen18/week7.txt · Last modified: 2019/03/13 07:57 by ballen18