How do you search for a string inside a given file?



How do you search for a string inside a given file?..

Answer / chaitanya

grep string filename

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Code Interview Questions

How do you search for a string inside a directory?

1 Answers  


What are PIDs?

1 Answers  


What’s the conditional statement in shell scripting?

1 Answers  


What’s a way to do multilevel if-else’s in shell scripting?

1 Answers  


How do you stop all the processes, except the shell window?

1 Answers  






How do you write a while loop in shell?

1 Answers  


How do you stop a process?

1 Answers  


How do you search for a string in a directory with the subdirectories recursed?

1 Answers  


How do you write a for loop in shell?

1 Answers  


How do you test for file properties in shell scripts?

1 Answers  


How do you do Boolean logic operators in shell scripting?

1 Answers  


How do you find out about all running processes?

1 Answers  


Categories
  • PHP Code Interview Questions PHP Code (33)
  • JSP Code Interview Questions JSP Code (6)
  • ASP Code Interview Questions ASP Code (5)
  • CGI Perl Code Interview Questions CGI Perl Code (3)
  • JavaScript Code Interview Questions JavaScript Code (63)
  • VB Script Code Interview Questions VB Script Code (20)
  • Shell Script Code Interview Questions Shell Script Code (31)
  • Python Code Interview Questions Python Code (34)
  • WinRunner Code Interview Questions WinRunner Code (1)
  • HTML DHTML XHTML Code Interview Questions HTML DHTML XHTML Code (13)
  • XML Interview Questions XML (43)
  • Scripts_Markup Code AllOther Interview Questions Scripts_Markup Code AllOther (5)