i have written a sed command
sed -i '1 a sometext' filename
his is working in commandline
but in script the changes are not seen when ran from my script
#!/usr/bin/bash
sudo -i
sed -i "1 a sometext" filename
i have written a sed command
sed -i '1 a sometext' filename
his is working in commandline
but in script the changes are not seen when ran from my script
#!/usr/bin/bash
sudo -i
sed -i "1 a sometext" filename