What is the syntax of "grep" command?

Answer Posted / jayachandran.g.r

syntax of "grep" command


syntax: grep {word to lookup} {filename}



Ex: grep man test

Is This Answer Correct ?    29 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do scripts work?

820


Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.

2054


How to pass an argument to a script?

812


How to check if the previous command was run successfully?

806


Why is the use of shell script?

767


What is the way to do multilevel if-else's in shell scripting?

984


Calculate a real number calculation directly from the terminal and not any shell script.

942


What is the significance of $#?

821


What does the sh command do?

842


What is a file basename?

817


How to print all the arguments provided to the script?

788


What can you do with powershell?

842


Is bash a shell script?

832


Write down the syntax for all the loops in shell scripting.

892


How do I run a bin bash script?

785