
Sed & Awk
Quiz
•
Computers
•
KG - 1st Grade
•
Practice Problem
•
Hard
Used 18+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
MEDIA AND INFORMATION LITERACY
Quiz
•
12th Grade
15 questions
Review for Midterm Test ICT 3
Quiz
•
1st - 11th Grade
11 questions
Microsoft Word Quiz 01
Quiz
•
1st - 3rd Grade
15 questions
Excel
Quiz
•
5th - 6th Grade
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
10 questions
CodeMonkey Platform Management & Resources
Quiz
•
Professional Development
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
10 questions
WINDOWS 10
Quiz
•
7th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
Presidents' Day
Quiz
•
KG - 5th Grade
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
11 questions
FOREST Growth Mindset
Lesson
•
KG
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
6 questions
President's Day
Lesson
•
1st Grade
10 questions
Identifying Physical and Chemical Changes
Interactive video
•
1st - 5th Grade
7 questions
Lunar and Chinese New Year for Kids | Bedtime History
Interactive video
•
1st - 12th Grade
10 questions
Presidents Day
Interactive video
•
1st - 5th Grade
