Jekyll WordPress Import from XML – Deleting the Unwanted


This worked for me under OS X 10.11.6 via Terminal to remove my publicize settings. Your milage may vary of course, sed does some things differently on the Mac than on Linux based machines. And never do anything like this on a set of master files… always use a backup or at least have one!

find . -type f -print0 | xargs -0 sed -i '' /" _publicize_twitter_user: '@ShaneMcRetro'"/d

The text being removed was ” _publicize_twitter_user: ‘@ShaneMcRetro’” from some 500-odd posts. Very convenient!

The below worked well for removing paragraph tags, because let’s be honest, they are a HTML thing.

start chant markdown, markdown, markdown /end chant

find . -type f -print0 | xargs -0 sed -i '' 's///g'

Creative Commons License Netscape Internet Explorer ICQ Powered by Debian! Tor - Anonymity Online mIRC for all! Do Only Good Everyday!

Established February 2012 and was last updated 13th of July 2024. You are visitor number Counter since sometime in the mid-1990s. We are powered by a Raspberry Pi.