Skip to content

Designed79.co.uk

It's all in the Mac magic…

  • Home
  • About
Search

Designed79.co.uk

It's all in the Mac magic…

Close menu
  • Home
  • About

Designed79.co.uk

It's all in the Mac magic…

Search Toggle menu

SED add newline on a Mac

By LotusshaneyOctober 18, 2013October 23, 2013Tech

This is different on a Mac from other Unix systems

sed 's/;/\'$'\n/g'

This will sub the semicolon for a newline

or

sed 's/;/\\\n/g'

Post navigation

Block Adverts with a Hosts file
Removeing Lines in Bash

Search

© 2025 Designed79.co.uk. Proudly powered by Sydney