Skip to content

Commit 79e8774

Browse files
committed
Fix command syntax in various scripts by removing comment slashes
1 parent 2103416 commit 79e8774

25 files changed

Lines changed: 36 additions & 36 deletions

individual-shell-tools/awk/script-01.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -euo pipefail
55
# TODO: Write a command to output just the names of each player in `scores-table.txt`.
66
# Your output should contain 6 lines, each with just one word on it.
77

8-
//awk '{print $1}' scores-table.txt
8+
awk '{print $1}' scores-table.txt

individual-shell-tools/awk/script-02.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -euo pipefail
44

55
# TODO: Write a command to output the names of each player, as well as their city.
66
# Your output should contain 6 lines, each with two words on it, separated by a space.
7-
//awk '{print $1, $2}' scores-table.txt
7+
awk '{print $1, $2}' scores-table.txt

individual-shell-tools/awk/script-03.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -euo pipefail
55
# TODO: Write a command to output just the names of each player along with the score from their first attempt.
66
# Your output should contain 6 lines, each with one word and one number on it.
77
# The first line should be "Ahmed 1".
8-
//awk '{print $1, $3}' scores-table.txt
8+
awk '{print $1, $3}' scores-table.txt

individual-shell-tools/cat/script-01.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ set -euo pipefail
55
# TODO: Write a command to output the contents of the helper-1.txt file inside the helper-files directory to the terminal.
66
# The output of this command should be "Once upon a time...".
77

8-
//mkdir helper-files
9-
//cd helper-files
10-
//cat > helper-1.txt
11-
//Once upon a time...
12-
//press the return key and then control+D
8+
mkdir helper-files
9+
cd helper-files
10+
cat > helper-1.txt
11+
Once upon a time...
12+
press the return key and then control+D

individual-shell-tools/cat/script-02.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ set -euo pipefail
1313
# But this seemed like a bad idea...
1414

1515

16-
//cat > helper-2.txt
16+
cat > helper-2.txt
1717
There was a house made of gingerbread.
18-
//cat > helper-3.txt
18+
cat > helper-3.txt
1919
It looked delicious.
20-
// cat > helper-4.txt
20+
cat > helper-4.txt
2121
I was tempted to take a bite of it.
22-
// cat >helper-5.txt
22+
cat >helper-5.txt
2323
But this seemed like a bad idea...
24-
// helper-files % cd ..
25-
// % cat helper-files/*
24+
helper-files % cd ..
25+
% cat helper-files/*
2626
There was a house made of gingerbread.It looked delicious.
2727
I was tempted to take a bite of it.
2828
But this seemed like a bad idea...

individual-shell-tools/cat/script-03.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -euo pipefail
1010
# 2 I was tempted to take a bite of it.
1111
# 3 But this seemed like a bad idea...
1212

13-
// cd helper-files
14-
// helper-files % cat -n helper-3.txt
13+
cd helper-files
14+
helper-files % cat -n helper-3.txt
1515
1 It looked delicious.
1616

individual-shell-tools/grep/script-01.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -euo pipefail
44

55
# TODO: Write a command to output every line in dialogue.txt said by the Doctor.
66
# The output should contain 6 lines.
7-
//grep '^Doctor:' dialogue.txt
7+
grep '^Doctor:' dialogue.txt

individual-shell-tools/grep/script-02.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -euo pipefail
44

55
# TODO: Write a command to output every line in dialogue.txt that contains the word Doctor (regardless of case).
66
# The output should contain 9 lines.
7-
//grep -i 'Doctor' dialogue.txt
7+
grep -i 'Doctor' dialogue.txt

individual-shell-tools/grep/script-03.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -euo pipefail
44

55
# TODO: Write a command to output the number of lines in dialogue.txt that contain the word Doctor (regardless of case).
66
# The output should be exactly the number 9.
7-
//grep -i 'Doctor' dialogue.txt | wc -l
7+
grep -i 'Doctor' dialogue.txt | wc -l

individual-shell-tools/grep/script-04.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -euo pipefail
44

55
# TODO: Write a command to output every line in dialogue.txt that does not contain the word "Hello" (regardless of case).
66
# The output should contain 10 lines.
7-
//grep -vi 'Hello' dialogue.txt
7+
grep -vi 'Hello' dialogue.txt

0 commit comments

Comments
 (0)