-
-
-
-
-
-
-
-
-
-
What is the use of ‘grep’ command?
‘grep’ is a pattern search command. It searches for the pattern, specified in the command line with appropriate option, in a file(s). Syntax : grep Example : grep 99mx mcafile
-
What is the difference between cat and more command?
Cat displays file contents. If the file is large the contents scroll off the screen before we view it. So command 'more' is like a pager which displays the contents page by page.
-
Is it possible to count number char, line in a file; if so, How?
Yes, wc-stands for word count.wc -c for counting number of characters in a file.wc -l for counting lines in a file.