Skip to content
Snippets Groups Projects
Commit 71ae8109 authored by ys554's avatar ys554
Browse files

lab4

parent 2893733f
No related branches found
No related tags found
No related merge requests found
#!/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
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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment