
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
11 questions
Challenge 3 Fourth grade
Quiz
•
4th Grade
7 questions
ESBrotherX_Medical AI_Lecture
Quiz
•
University
10 questions
Тест повторения 3 четверти
Quiz
•
1st Grade
10 questions
NETIQUETTE AND DIGITAL FOOTPRINT
Quiz
•
University
10 questions
Tin học 10 _ Bài 16 _Định dạng văn bản
Quiz
•
10th - 12th Grade
10 questions
TQ - Review Quiz Week 1
Quiz
•
9th Grade
15 questions
Monday Week#2
Quiz
•
University
11 questions
Computer Education 7
Quiz
•
7th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Life Cycle of a Frog
Quiz
•
1st - 2nd Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
100th Day of School 1st/2nd
Quiz
•
1st - 2nd Grade
15 questions
Reading Comprehension
Quiz
•
1st - 5th Grade
10 questions
Identifying Physical and Chemical Changes
Interactive video
•
1st - 5th Grade
10 questions
Exploring the American Revolution
Interactive video
•
1st - 5th Grade
