I am trying to add a line under a specific line in a file.
This is the command I am using.
Code:
/bin/sed -i -e 'export s_sshhost="host.name.here1"/a export s_vpnhost="host.name.here2"' /root/testfile
This is the output
Code:
sh: 1: xport: not found
Is there something wrong with my syntax?
Thanks