Skip to content

Tag: linux

Error while compiling lsnes emulator on ubuntu

I’m currently trying to get the Mario project from https://github.com/aleju/mario-ai to work on my ubuntu (16.04) system. I followed the tutorial and already solved some errors, but now I get something that looks like a compile error on the lsnes emulator and that doesn’t make sense to me. My comm…

Switch user from bitbucket to github

I work for a team that stores its repositories on Bitbucket, so I have an account there. Now I’m starting to work simultaneously for another team that stores its repositories on GitHub. I have a couple of questions: Since on both Bitbucket and GitHub they use Git to manage their repository, can I use th…

preserve inline variable with sudo

Hi i’m trying to make something like this to work in bash but i keep getting an empty line, the only thing that works so far is: what i would like to achieve is the ability to inline a variable for the sudo command i also tried this as suggested here but with no luck, am i missing something? Answer

How to insert variable containing a path into sed

I’m writing a linux script, which is to replace a string for a file. Here is my script: In the file named test, there is a line like this: What I need is to replace this line with the line below: It means that things between double quotes should be replaced by the $var. However when I execute my script,