Skip to content

Sed with special caracters

How can I replace this with sed ? I need to replace this: to Please note that I can’t sed the enabled to disabled because it’s not only used at this location in the input file. I tried this but it didn’t change anything but gave me no error: Answer You can just use the following sed command:…

How to add webrtc native apis into my qt project?

I have been in trouble for a few days, so I really need some exports of webrtc to help me. I compiled successfully with the source code by ninja, and I can run the peerconnection example. I add the static libraries(.a file) into my qt project one by one, and then I set the include path to the source code

How to create an ELF executable from process memory image

First of all, Engilish is not my native language. Please excuse if there are any mistakes. As stated above, I want to create an ELF executable from process memory image. Up until now, I successfully extracted an ELF Header, Program Headers and a list of Elf64_Dyn structures resides in Dynamic segment. I also …

Upgrade .Net Core 1.0 to 2.0 Ubuntu 16.10

I’m trying to upgrade the .net core version from 1.0 to 2.0 but I’m getting some errors. I’m not good at Linux, so I don’t understand well what’s happening. I run: And I get this error: So, I try to install dotnet-runtime-2.0.5 and I get this After this, I try to install libicu55…

linux ulimit with java does not work properly

I run code on linux ubuntu 17.10 this code returns “unlimited” but whenever I run command from terminal I get 1024. Why those numbers are different? Answer You get the same result if you run the same command from the command line: This is because -c only looks at the argument immediately following…

Expect: How to iterate over files in a directory?

The following is a bash script which iterate over .csv files within a directory. The question is, I now have an expect script #!/usr/bin/expect where I want to use the same for loop. How could I achieve that? Answer You would write: Expect is an extension of Tcl. In addition to the expect man page, a link to …