
Sed & Awk
Quiz
•
Computers
•
KG - 1st Grade
•
Hard
Used 18+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Without the -n option, what will the following sed command print to the terminal? | sed '/line/' readme.txt
All lines that include 'line'
All lines and the lines including "line" (some duplicates)
Will print the line numbers
All of the lines in the file
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the following command print? | sed -n '4,20 p' readme.txt
All lines and lines 4-20 (duplicates)
Only lines 4-20
Only line 4 and 20
Lines 5-19
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will the following command do? | sed 's/hello/goodbye/' readme
Find the first instance of hello in each line and replace it with goodbye
Add hello after every goodbye in the file
Search for "hello" and "goodbye" and print to screen
Replace all instances of "hello" with "goodbye"
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will the following command do? | sed 's/hello/goodbye/g' readme
Substitute all instances of "hello" with "goodbye" and print to screen
Find the first instance of "hello" in each line and replace it with "goodbye" and print to screen
Substitute all instances of "hello" and replace it with "goodbye" but write the changes to the file
Shut down the computer and print Hello Goodbye
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What option for sed will write changes to the file?
-c
-n
-i or --in-place
-l
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the following awk command do with no pattern?
awk '{ print }' readme.txt
Print all lines
Delete all lines
Print the first line
Will not do anything
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the following awk command do with no action?
awk '/chevy/' cars
Print lines including "chevy"
Print all lines
Will not print anything
Error: you need an action
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Ponavljanje - Programiranje 1
Quiz
•
5th Grade
15 questions
SIMKOM
Quiz
•
12th Grade - Professi...
10 questions
WINDOWS 10
Quiz
•
7th Grade
10 questions
MEDIA AND INFORMATION LITERACY
Quiz
•
12th Grade
15 questions
Review for Midterm Test ICT 3
Quiz
•
1st - 11th Grade
10 questions
WordPad Gr 2 Part 1
Quiz
•
2nd Grade
12 questions
Adobe Fireworks + Vector Graphics
Quiz
•
KG - University
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Disney Characters
Quiz
•
KG
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
18 questions
D189 1st Grade OG 1c Concept 37-38
Quiz
•
1st Grade
20 questions
addition
Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences
Quiz
•
1st - 3rd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Exploring Force and Motion Concepts
Interactive video
•
1st - 5th Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade