Skip to content
Albert Rossi edited this page Feb 6, 2022 · 1 revision

Special usages: see

How to match newlines in sed

Example: change:

....,
]

to

....]
sed ':begin;$!N;s/,\n]/]/;tbegin;P;D'
Clone this wiki locally