Skip to content

Tag: linux

Bash: process all files in a directory

How would I apply a logic to all files in a directory and pipe the final output of each input file to a separate file? Something like below (actual command is long, but I used above for simplicity to better understand the logic to all the files in a directory) Answer You can use a for-loop over the filenames:…

Install4j Zipped .sh for Linux

I am generating a Unix/Linux GUI installer with install4j. The problem is that when users try to download the .sh, the browser opens the script’s text instead of prompting to download. (I know this doesn’t depend on install4j and is the browser’s behavior). I also know that the are Linux arc…

Unix -Delete even bytes from a file

I want to find and delete all even bytes from a file given in command line. Is there any command for this situation? Answer I think this does what you want. It dumps the file as continuous plain hex, then reads two bytes, saving them for later and then two more bytes. Then it outputs the bytes it saved and

“Authentication failed” in Wayland application

First of all, sorry for a potentially silly question, it’s my first attempt to work with Wayland. But i’ve googled and could not find anything related. The system which i develop, is very time-critical in running graphicall applications, so i’ve managed to run Weston and the desired applicat…

CMAKE_PREFIX_PATH for Qt5

I want to compile this which requires Qt 5.14 and I have Qt 5.12 installed from my linux repository.I just compiled Qt from source and installed it in /usr/local/Qt-6.0.0/(default location). But CMake prints the following error although I’ve added set(CMAKE_PREFIX_PATH “/usr/local/Qt-6.0.0/include…