Timeline for SED : Delete 4 line above and below 5 line after pattern match
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 26, 2016 at 14:08 | answer | added | mikeserv | timeline score: 0 | |
| Jan 26, 2016 at 8:55 | answer | added | Wildcard | timeline score: 5 | |
| Sep 7, 2013 at 2:31 | answer | added | Ray | timeline score: 0 | |
| Sep 6, 2013 at 20:30 | comment | added | Rahul Patil | there any many entry in input file, I just want to remove some container means from define { to } if that address match, It should not remove any other content, that's it | |
| Sep 6, 2013 at 20:28 | comment | added | Drav Sloan | if you are deleting both the 4 lines before AND 5 after, surely sed -n '/\s*address/p;' file will solve it? Which is the same as grep 'address' file? Or am I missing something here? What is the output meant to look like? | |
| Sep 6, 2013 at 19:26 | answer | added | iruvar | timeline score: 8 | |
| Sep 6, 2013 at 18:34 | answer | added | ghoti | timeline score: 2 | |
| Sep 6, 2013 at 18:32 | answer | added | slm♦ | timeline score: 5 | |
| Sep 6, 2013 at 18:22 | comment | added | ghoti | MUST it be sed, or are you open to other tools? | |
| Sep 6, 2013 at 18:15 | history | tweeted | twitter.com/#!/StackUnix/status/376045982766866432 | ||
| Sep 6, 2013 at 17:15 | history | asked | Rahul Patil | CC BY-SA 3.0 |