Timeline for Grep with `\n` in C style quoted string prints every line in file
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 14, 2023 at 11:30 | history | edited | don_crissti | CC BY-SA 4.0 | added 15 characters in body |
| S Feb 11, 2023 at 14:08 | history | edited | G-Man Says 'Reinstate Monica' | CC BY-SA 4.0 | Don't use code formatting for (non-code) quotations; link to sources; tweaked punctuation. |
| Feb 11, 2023 at 12:46 | review | Suggested edits | |||
| S Feb 11, 2023 at 14:08 | |||||
| Feb 11, 2023 at 12:39 | history | edited | don_crissti | CC BY-SA 4.0 | added 336 characters in body |
| Feb 11, 2023 at 12:38 | vote | accept | Dhruv | ||
| Feb 11, 2023 at 12:37 | comment | added | Dhruv | Also, I have another question regrading grep here. Could you please look into that? I have been stuck on it for 2 days. | |
| Feb 11, 2023 at 12:35 | comment | added | Dhruv | I found out this The grep command searches for lines that contain strings that match a pattern. Every line contains the empty string, so an empty pattern causes grep to find a match on each line. So '' matches empty string present in each line and also prints the match which is nothing. You can add this explanation to your answer. | |
| Feb 11, 2023 at 12:19 | vote | accept | Dhruv | ||
| Feb 11, 2023 at 12:20 | |||||
| Feb 11, 2023 at 12:19 | comment | added | Dhruv | Since '' matches every line then why doesn't -o print anything? | |
| Feb 11, 2023 at 12:11 | history | answered | don_crissti | CC BY-SA 4.0 |