Search a string contain double quotation with the grep.

New to Debian (Or Linux in general)? Ask your questions here!

Search a string contain double quotation with the grep.

Postby hack3rcon » 2020-08-13 18:03

Hello,
In a text file how can I find a string that contain double quotation with the grep command?
For example, a text like below:
Code: Select all
Example="example"


Thank you.
hack3rcon
 
Posts: 416
Joined: 2015-02-16 09:54

Re: Search a string contain double quotation with the grep.

Postby Head_on_a_Stick » 2020-08-13 18:06

Code: Select all
grep \"example\" /path/to/file
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12485
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable