wiki:Onion/UsageExample

Usage Example

$ cat weather-forecasts.vert

<doc id="1" name="Weather forecasts for Czech Republic">
<p>
Weather
forecast
for
Prague:
Partially
cloudy
with
occasional
showers.
Temperatures
around
15
degrees
Celsius.
North
wind
between
20
and
25
km/h.
</p>
<p>
Weather
forecast
for
Brno:
Partially
cloudy
with
occasional
showers.
Temperatures
around
16
degrees
Celsius.
North
wind
between
20
and
30
km/h.
</p>
</doc>

The second paragraph is removed since it is a near-duplicate of the first paragraph (according to the default settings):

$ onion -sm -n 5 -t 0.5 weather-forecasts.vert

<doc id="1" name="Weather forecasts for Czech Republic">
<p>
Weather
forecast
for
Prague:
Partially
cloudy
with
occasional
showers.
Temperatures
around
15
degrees
Celsius.
North
wind
between
20
and
25
km/h.
</p>
</doc>
Last modified 2 years ago Last modified on Jul 30, 2015, 12:32:46 PM