Skip to content
Advertisement

Tag: linux

Remove set of special chars from a string using bash script

I need to search for the file path ending with *Tests.cs having multiple directories. I need to display all the file path in spaces instead of new line. Currently, it is displaying as How to remove ./ from each file path and display it as follows? My bash script is: Answer If your structure is consistent as in the example,

ProcessHandle returns ambiguous results

I’ve two Java 11 methods that check whether a process for a given PID is running: When checking multiple PIDs on Linux clients, I’m getting sometimes different results for certain PIDs, where the first implementation always returns true and the second one always false. Checking some “false positives” with shell command ps -ef | grep <pid> shows that first implementation

Compiler version in C++ vs pre-compiled C libraries

I have a code that uses std=c++20. I want to use a C library that was build with old gcc version. Should I recompile the C library using the same compiler ? If no, how could you judge that the 2 ABIs are compatible? Answer There should be no problem using the library as it is. Don’t forget to add

Advertisement