Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
313 B
4
Indexable
Never
Task 1:
	1)$egrep " z" crusoe.txt
	2)$egrep -i "[a-z]{16}" crusoe.txt
	3)$egrep -i "\ba[a-z]*c\b" crusoe.txt
	4)$egrep -i "\bab[^o]" crusoe.txt
Task 2:
	1)$egrep -x "[0-9]+" patterns.txt
	2)$egrep -x -i "[a-z]+" patterns.txt
Task 3:
	1)egrep -x "[ABEKMNOPCTYX]{1}[0-9]{3}[ABEKMNOPCTYX]{2}[0-9]{2,3}" patterns.txt