I'm trying to add a string 'rest_framework',
after 'django.contrib.staticfiles',
in a file, however when I do try something like
sed '/'django.contrib.staticfiles',/a 'rest_framework',' file
I get an error saying
sed: 1: "/'django.contrib.static ...": command a expects \ followed by text
I have tried the same command with \
around the symbols as well.
Answer: Installed gsed as base MacOS sed does not work well when creating lines under specified strings.