User Tools

Site Tools


journal:spring2019:jharmon5:week7

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
journal:spring2019:jharmon5:week7 [2019/03/12 15:07]
jharmon5
journal:spring2019:jharmon5:week7 [2019/03/12 15:32] (current)
jharmon5
Line 1: Line 1:
- 
----- 
 =====unix week7===== =====unix week7=====
 ---- ----
Line 23: Line 21:
 \( \)- regex group \( \)- regex group
 (vim,​egrep,​sed) ​ (vim,​egrep,​sed) ​
 +---
 +cat words | grep '​^.....$'​ | wc -l all 5 letter words
 +
 +cat words | grep '​^.[aeiouy].[aeiouy].$'​ | wc -l  all 5 letter words whose even number places have a vowel
 +
 +cat words | grep '​^..[^rstlne].'​ | wc -l all lines that have 4 or more symbols and the 3rd symbol not being rstlne ​
 +
 +
 +
  
journal/spring2019/jharmon5/week7.txt · Last modified: 2019/03/12 15:32 by jharmon5