Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help in unix. Question 41 pts The command p puts the copied text Before the cursor After the cursor Up the cursor Down

I need help in unix.

Question 41 pts

The command p puts the copied text

Before the cursor
After the cursor
Up the cursor
Down the cursor

Question 51 pts

In vi editor, which command copies the current line of the file?

yw
yy
yc
None of the mentioned

Question 61 pts

An expression /[Tt]om/ indicates that Vi will search for the regular expression containing

An uppercase t followed by an o, and m
A lowercase t followed by an o, and m
An uppercase or lowercase t followed by an o, and m
An uppercase and lowercase t followed by an o, and m

Question 71 pts

An expression /case$/ indicates that Vi will find only those lines where the regular expression case is matched

At the beginning of the word
At the beginning of the line
At the end of the word
At the end of the line

Question 81 pts

An expression /^case/ indicates that Vi will find only those lines where the regular expression case is matched

At the beginning of the word
At the beginning of the line
At the end of the word
At the end of the line

Question 91 pts

An expression /ove[^a?zA?Z0?9]/ indicates that Vi will search for the regular expression containing an o, v, and e, followed by

Any uppercase character
Any lowercase character
Any digit
None of the mentioned

Question 101

In Vi editor, which of the following keys is used to move the cursor to the beginning of the paragraph

|
$
{
}

Question 111 pts

What will be printed for the command below? grep -c '[T/t]om' filename

The count of lines that contains Tom in file filename
The count of lines that contains tom in file filename
The count of lines that contains Tom or tom in file filename
The count of lines that contains Tom and tom in file filename
None of the mentioned

Question 121 pts

What will be searched for the command below? grep 'T[oO][mM]' filename

It will search for TOM or Tom
It will search for TOM and Tom
It will search for TOM, Tom, TOm, and ToM
It will search for TOM, Tom, TOm, or ToM
None of the mentioned

Question 131 pts

Indicate the right command to search for anything except letters or numbers

grep '[a-zA-Z0-9]' filename
grep '^[a-zA-Z0-9]' filename
grep '[^a-zA-Z0-9]' filename
grep '[^a-z][^A-Z][^0-9]'filename

Question 141 pts

How can you print all lines except blank lines in a file?

grep n ' ' filename
grep n v '^$' filename
grep n [' '] filename
grep n [^$] filename
None of the mentioned

Question 151 pts

How can you search for blank line in a file?

grep n v ' ' filename
grep n v '^$' filename
grep n v [' '] filename
grep n v [^$] filename
None of the mentioned

Question 161 pts

What will the below command do? grep '8$' filename

Prints all lines starting with an 8
Prints all lines ending with an 8
Prints all lines starting with an 8 and ending with a $
None of the mentioned

Question 171 pts

What will the below command do? grep '^b' filename

Prints all lines beginning with the uppercase b
Prints all lines beginning with the lowercase b
Prints all lines beginning with the lowercase and uppercase b
Prints all lines ending with the lowercase b

Question 181 pt

What will the below command do? grep '8\..' filename

Prints all lines start with the number 8 and followed by any digit
Prints all lines start with the number 8 and followed by any letter
Prints all lines ending with the number 8
None of the mentioned

Question 191 pts

What will the below command do? grep '\.7' filename

Prints all lines start with the number 7
Prints all lines end with the number 7
Prints any line not containing the expression .7
Prints any line containing the expression .7
None of the mentioned

Question 201 pts

What will the below command do? grep '^[we]' filename

Prints all lines beginning with either a w or an e
Prints all lines beginning with a w and followed by an e
Prints all lines ending with the we
None of the mentioned

Question 211 pts

What will the below command do? grep '[a?z]\{11\}' filename

Prints all lines containing at most eleven consecutive lowercase letters
Prints all lines containing at least eleven consecutive lowercase letters
Prints all lines containing lowercase letters followed by number eleven
None of the mentioned

Question 221 pts

What will the below command do? grep i 'north' filename

Prints all lines containing lowercase north letters
Prints all lines containing uppercase north letters
Prints all lines containing an uppercase n followed by lowercase o, r, t, and h letters
Both a and b

Question 231 pts

What will the below command do? egrep 'NA|EA' filename

Prints the lines beginning with either the expression NA or the expression EA
Prints the line if it contains NA and EA expressions
Is the same as grep '[N/E]A' filename command
None of the mentioned

Question 241 pts

What will the below command do? egrep '4+' filename

Prints all lines containing more than one occurrences of the number 4
Prints all lines containing one or more occurrences of the number 4
Prints all lines containing more than four occurrences of the number 4
None of the mentioned

Question 251 pts

What will the below command do? egrep '7\.?[09]' filename

Prints all lines containing a 7, followed by zero or one period, followed by a number
Prints all lines containing a 7, followed by one or more period, followed by a number
Prints all lines containing a 7, followed by one period, followed by one number
None of the mentioned

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 3 Lnai 6323

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

3642159389, 978-3642159381

More Books

Students also viewed these Databases questions

Question

Have you ever been arrested for a crime?

Answered: 1 week ago