Professional Documents
Culture Documents
Free Open Source Software (Mid Term 2)
Free Open Source Software (Mid Term 2)
Email address *
arifmohammadarif0786@gmail.com
done
do
then
do and done
Correct answer
do and done
https://docs.google.com/forms/d/e/1FAIpQLSdrIp4vhpB3yLURX8n2j9swuUSh1Xm5efQVLy21iE3Rt_4vzg/viewscore?viewscore=AE0zAgCV5UU2LdW… 1/7
3/22/2021 Free Open Source Software (Mid Term 2)
Correct answer
Which option will e used to replace the nth occurrence of a pattern in a 0/1
file? *
Correct answer
https://docs.google.com/forms/d/e/1FAIpQLSdrIp4vhpB3yLURX8n2j9swuUSh1Xm5efQVLy21iE3Rt_4vzg/viewscore?viewscore=AE0zAgCV5UU2LdW… 2/7
3/22/2021 Free Open Source Software (Mid Term 2)
Correct answer
Which of the following is used for storing the number of parameters 1/1
given as argument while running the shell script? *
$*
$#
$@
$n
Which one of the following command is used for searching for a pattern 1/1
in one or more file(s)? *
find
grep
cd
cp
https://docs.google.com/forms/d/e/1FAIpQLSdrIp4vhpB3yLURX8n2j9swuUSh1Xm5efQVLy21iE3Rt_4vzg/viewscore?viewscore=AE0zAgCV5UU2LdW… 3/7
3/22/2021 Free Open Source Software (Mid Term 2)
Which symbol will be used with grep command to match the pattern at 1/1
the beginning of the line *
x10$
error
undefined
100
https://docs.google.com/forms/d/e/1FAIpQLSdrIp4vhpB3yLURX8n2j9swuUSh1Xm5efQVLy21iE3Rt_4vzg/viewscore?viewscore=AE0zAgCV5UU2LdW… 4/7
3/22/2021 Free Open Source Software (Mid Term 2)
To run the script, we should make it executable first by using _____ * 0/1
chmod +x
chmod +rwx
chmod +w
chmod +r
Correct answer
chmod +x
To delete a line using sed, which of the following option is used? * 1/1
Full Name *
Mohammad Arif
https://docs.google.com/forms/d/e/1FAIpQLSdrIp4vhpB3yLURX8n2j9swuUSh1Xm5efQVLy21iE3Rt_4vzg/viewscore?viewscore=AE0zAgCV5UU2LdW… 5/7
3/22/2021 Free Open Source Software (Mid Term 2)
read
ip
write
input
Correct answer
52010006
https://docs.google.com/forms/d/e/1FAIpQLSdrIp4vhpB3yLURX8n2j9swuUSh1Xm5efQVLy21iE3Rt_4vzg/viewscore?viewscore=AE0zAgCV5UU2LdW… 6/7
3/22/2021 Free Open Source Software (Mid Term 2)
Which of the following command is used with sed for outputting as well 1/1
as printing the selected lines? *
If there are special characters in a pattern, then we’ve to enclose them in 1/1
______ *
double quote
all quotes
single quote
Forms
https://docs.google.com/forms/d/e/1FAIpQLSdrIp4vhpB3yLURX8n2j9swuUSh1Xm5efQVLy21iE3Rt_4vzg/viewscore?viewscore=AE0zAgCV5UU2LdW… 7/7