adplus-dvertising
frame-decoration

Question

What does the following command do ?
grep − vn  "abc" x

a.

It will print all of the lines in the file x that match the search string "abc"

b.

It will print all of the lines in file x that do not match the search string "abc"

c.

It will print total no of the lines in file x that match the search string "abc"

d.

It will print the specific line numbers of file x in which there is a match for the string "abc"

Answer: (a).It will print all of the lines in the file x that match the search string "abc"

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What does the following command do ? grep − vn  "abc" x

Similar Questions

Discover Related MCQs

Q. The Unix Kernel maintains two key data structures related to processes, the progress table and the user structure. Which of following information is not the part of user

Q. A Unix file may be of the type :

Q. Match the following for Unix system calls:

List – I List – II

(a) exec (i) Creates a new process

(b) brk (ii) Invokes another program overlaying memory space with a copy of an executable file

(c) wait (iii) To increase or decrease the size of data region

(d) fork (iv) A process synchronizes with termination of child process

code:
a b c d

Q. WOW32 is a :

Q. The Unix command :

$ vi file1 file2

Q.  _______ maintains the list of free disk blocks in the Unix file system.

Q. A part of Windows 2000 operating system that is not portable is

Q. Match the following with reference to Unix shell scripts : 

List-I                                                     List-II

a. $?                                 i.  File name of the current script

b. $#                                ii.  List of arguments

c. $0                                 iii. The number of arguments

d. $*                                  iv. Exit status of last command

Codes:
a       b       c       d

Q. The output generated by the LINUX command :
                     $ seq 1 2 10 
will be

Q. In UNIX, ______________ creates three subdirectories: 'PIS' and two subdirectories 'progs' and data from just created subdirectory 'PIS'.

Q. Which statement is not correct about “init” process in Unix?

Q. Unix command to change the case of first three lines of file “shortlist” from lower to upper

Q. Match the following vi commands in Unix:
List-I                   List-II
a.   :w        i. saves the file and quits
editing mode
b.   :x         ii. escapes unix shell
c.   :q         iii. saves file and remains
in editing mode
d. :sh       iv. quits editing mode and
no changes are saved to
the file

Codes:
     a   b  c  d

Q. The Unix Operating System Kernel maintains two key data structures related to processes, the process table and the user structure. Now, consider the following two statements:

I. The process table is resident all the time and contain information needed for all processes, even those that are not currently in memory.
II. The user structure is swapped or paged out when its associated process is not in memory, in order not to waste memory on information that is not needed.

Which of the following options is correct with reference to above statements ?

Q. Consider the following operations to be performed in Unix:

“The pipe sorts all files in the current directory modified in the month of “June” by order of size and prints them to the terminal screen. The sort option skips ten fields then sorts the lines in numeric order.”

Which of the following Unix command will perform above set of operations?

Q. Which of the following statement(s) is/are True regarding ‘nice’ command of UNIX?

I. It is used to set or change the priority of a process.
II. A process’s nice value can be set at the time of creation.
III. ‘nice’ takes a command line as an argument.

Q. In UNIX, processes that have finished execution but have not yet had their status collected are known as ................

Q. In UNIX operating system, when a process creates a new process using the fork() system call, which of the following state is shared between the parent process and child process?

Q. Which of the following information about the UNIX file system is not correct?

Q. Which of the following option with reference to UNIX operating system is not correct?