Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CC-834 changed -E to -P #51

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions course-definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ stages:
Your program will be executed like this:

```bash
$ echo "apple" | ./your_grep.sh -E "a"
$ echo "apple" | ./your_grep.sh -P "a"
```

The `-E` flag instructs `grep` to interprets patterns as extended regular expressions (with support
Expand Down Expand Up @@ -92,7 +92,7 @@ stages:
Your program will be executed like this:

```bash
$ echo "apple123" | ./your_grep.sh -E "\d"
$ echo "apple123" | ./your_grep.sh -P "\d"
```

You program must exit with 0 if a digit is found in the string, and 1 if not.
Expand Down Expand Up @@ -124,7 +124,7 @@ stages:
Your program will be executed like this:

```bash
$ echo "alpha-num3ric" | ./your_grep.sh -E "\w"
$ echo "alpha-num3ric" | ./your_grep.sh -P "\w"
```

You program must exit with 0 if an alphanumeric character is found in the string, and 1 if not.
Expand Down Expand Up @@ -155,7 +155,7 @@ stages:
Your program will be executed like this:

```bash
$ echo "apple" | ./your_grep.sh -E "[abc]"
$ echo "apple" | ./your_grep.sh -P "[abc]"
```

You program must exit with 0 if an any of the characters are found in the string, and 1 if not.
Expand Down Expand Up @@ -185,7 +185,7 @@ stages:
Your program will be executed like this:

```bash
$ echo "apple" | ./your_grep.sh -E "[^abc]"
$ echo "apple" | ./your_grep.sh -P "[^abc]"
```

You program must exit with 0 if the input contains characters that aren't part of the negative character group, and 1 if not.
Expand Down Expand Up @@ -225,7 +225,7 @@ stages:
Your program will be executed like this:

```bash
$ echo "1 apple" | ./your_grep.sh -E "\d apple"
$ echo "1 apple" | ./your_grep.sh -P "\d apple"
```

You program must exit with 0 if the pattern matches the input, and 1 if not.
Expand Down Expand Up @@ -258,7 +258,7 @@ stages:
Your program will be executed like this:

```bash
$ echo "log" | ./your_grep.sh -E "^log"
$ echo "log" | ./your_grep.sh -P "^log"
```

You program must exit with 0 if the input starts with the given pattern, and 1 if not.
Expand Down Expand Up @@ -288,7 +288,7 @@ stages:
Your program will be executed like this:

```bash
$ echo "dog" | ./your_grep.sh -E "dog$"
$ echo "dog" | ./your_grep.sh -P "dog$"
```

You program must exit with 0 if the input matches the given pattern, and 1 if not.
Expand Down Expand Up @@ -316,7 +316,7 @@ stages:
Your program will be executed like this:

```bash
$ echo "caats" | ./your_grep.sh -E "ca+ts"
$ echo "caats" | ./your_grep.sh -P "ca+ts"
```

You program must exit with 0 if the input matches the given pattern, and 1 if not.
Expand All @@ -342,7 +342,7 @@ stages:
Your program will be executed like this:

```bash
$ echo "dogs" | ./your_grep.sh -E "dogs?"
$ echo "dogs" | ./your_grep.sh -P "dogs?"
```

You program must exit with 0 if the input matches the given pattern, and 1 if not.
Expand All @@ -368,7 +368,7 @@ stages:
Your program will be executed like this:

```bash
$ echo "dog" | ./your_grep.sh -E "d.g"
$ echo "dog" | ./your_grep.sh -P "d.g"
```

You program must exit with 0 if the input matches the given pattern, and 1 if not.
Expand All @@ -394,7 +394,7 @@ stages:
Your program will be executed like this:

```bash
$ echo "cat" | ./your_grep.sh -E "(cat|dog)"
$ echo "cat" | ./your_grep.sh -P "(cat|dog)"
```

You program must exit with 0 if the input matches the given pattern, and 1 if not.
Expand Down
Loading