From 71ae810952cae09a1d7783db6ecd0339be6754f8 Mon Sep 17 00:00:00 2001
From: ys554 <ys554@cs.drexel.edu>
Date: Mon, 4 Feb 2019 22:33:01 -0500
Subject: [PATCH] lab4
---
lab04/anagram | 5 +++++
lab04/lab4 | 23 +++++++++++++++++++++++
2 files changed, 28 insertions(+)
create mode 100644 lab04/anagram
create mode 100644 lab04/lab4
diff --git a/lab04/anagram b/lab04/anagram
new file mode 100644
index 0000000..1a522f5
--- /dev/null
+++ b/lab04/anagram
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+gcc -osign sign.c
+./sign < /usr/share/dict/words | sort | awk -f squash.awk > out
+awk '{ print NF " " $0}' < out | sort -n | tail
diff --git a/lab04/lab4 b/lab04/lab4
new file mode 100644
index 0000000..6f47238
--- /dev/null
+++ b/lab04/lab4
@@ -0,0 +1,23 @@
+1. egrep 'the' bright_side_of_life
+
+2. egrep -w 'the' bright_side_of_life
+
+3. egrep 'just' bright_side_of_life
+
+4. egrep '[Jj]ust' bright_side_of_life
+
+5. egrep -w '[Jj]ust' bright_side_of_life
+
+6. egrep '[bm]ad' bright_side_of_life
+
+7. egrep '(death|breath)' bright_side_of_life
+
+8. egrep '[you]$' bright_side_of_life
+
+9. egrep '^[ ]' bright_side_of_life
+
+10. egrep '^$' bright_side_of_life
+
+11. egrep '^$' bright_side_of_life | wc -l
+ 11 lines.
+
--
GitLab