Home » Questions » Computers [ Ask a new question ]

What is the use of ? in grep command.. And practical use

What is the use of ? in grep command.. And practical use

I tried to find the actual practical use of ? i.e. for e.g. "egrep a? filename" but was not able to find any.. It returns all results..

Asked by: Guest | Views: 66
Total answers/comments: 1
Guest [Entry]

"It's a single character search, matching one or zero of the character before it.

Note: you need to escape the ? by using a \ first: \?."