Skip to content

Instantly share code, notes, and snippets.

@adrianlshaw
Created January 6, 2018 16:43
Show Gist options
  • Save adrianlshaw/3503d0accbcbccfc873687b0619bad96 to your computer and use it in GitHub Desktop.
Save adrianlshaw/3503d0accbcbccfc873687b0619bad96 to your computer and use it in GitHub Desktop.
where n=4 and char=space
echo "foobarbazblargblurg" | sed 's/.\{4\}/& /g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment