1

How do I add a new empty line to the beginning of a file under MacOS and Linux?

I have tried the below command and it produces a new line character under MacOS

sed -i.bak '1s/^/TESTe\n/' test.py
Zumo de Vidrio
  • 1,703
  • 1
  • 13
  • 28
user977828
  • 921
  • 4
  • 16
  • 30

0 Answers0