Skip to main content
7 events
when toggle format what by license comment
Nov 6, 2017 at 12:23 vote accept hibridpc
Oct 11, 2017 at 9:40 comment added Kusalananda @hibridpc You are trying to run sed on a file called ;.
Oct 11, 2017 at 9:40 comment added hibridpc sudo sed -i '7a iface eth0 inet static' /tmp/interfaces \;
Oct 11, 2017 at 9:38 comment added hibridpc why do i get "file not found" when i write this command in shell?sudo sed -i '7a iface eth0 inet static' /tmp/interfaces \;
Oct 11, 2017 at 8:55 comment added Kusalananda @hibridpc I was making a guess on the if test. You may have to remove the !. Also, you still have way too many sed invocations. If you set ip, gateway and mask at the beginning, you should be ok with just one sed.
Oct 11, 2017 at 8:50 comment added hibridpc check the main question please.. i have an issue .. and i cant really explain it :)
Oct 11, 2017 at 7:18 history answered Kusalananda CC BY-SA 3.0