I configure Jenkins to build a project from git, i’m using maven: However, the project build is incomplete: In a terminal the build occurred correct: In both case no error occurs and a build is finished with sucess. I don’t know exactly, why the differences are happening. Answer I was making two m…
Linux – rename all files by replacing last hyphen with ‘##’
Please anyone. How do I in Linux rename a bunch of files like: abc-def-0001.xxx acb-def-0002.xxx to: abc-def##0001.xxx … I have tried several suggestions from SO like: rename ‘s/(.*)-/$1##/’ *.xxx But didn’t worked as expected in my environment. Answer So I ended up using: for i in *; …
OpenCV 3.1.0 won’t compile with CMake
I know there are many supposed duplicates for this matter, but since none of the answers worked for me I’d rather ask another question. My project won’t compile with CMake: Found package configuration file: /usr/share/OpenCV/OpenCVConfig.cmake but it set OpenCV_FOUND to FALSE so package “Ope…
How to take continuous back up of linux gnome terminal logs? commands and output of that command
I want to take continuous backup of logs being printed in my linux terminal. Is it possible that whenever something will be printed in my terminal, it will automatically get printed into some text file with time stamp. Answer Use the script command ie at the start of your session. You can also add this to you…
Difference between archiving and compression
What is the difference between Archiving and compression in Linux? We have different commands for both which we can combine too.. but what exactly are they? Answer Archiving means that you take 10 files and combine them into one file, with no difference in size. If you start with 10 100KB files and archive th…
Bash script to copy the directory structure from source directory into target directory
I am very new to Bash scritping and to get some practice, I am attempting to write a script that takes in a source directory and a destination directory. The script will search the source directory and copy its structure of sub-directories into the target directory (any files will be ignored, just the directo…
Package manager on the Docker Machine default VM?
I’m developing on OSX using Docker Machine. I used the quickstart terminal to let it create the default VM which is extremely minimal: In an OS X installation, the docker daemon is running inside a Linux VM called default. The default is a lightweight Linux VM made specifically to run the Docker daemon …
How do I read the whole command line?
Command $ ls -l | ./main.out The output will show My question is, how do I make my program to read the command before that, ls -l Answer Command line parameters are passed as arguments when calling the program. And your program will read the entire command line arguments. But What you are doing ($ ls -l | ./m…
formatting the output with sed command
I need your help… I got this kind of text: and the output I need is (first and second column and socialSecurityNumber OR tng-customer-id): So the question is … is it possible to solve this issue with sed command? I need the OR option here. If I try to do it separately, firstly, find the socialSecu…
./gradlew run BUILD FAILED
I have my build.gradle file set up and my project is working good so far. The problem now is when i run ./gradlew run, it fails with the error : What went wrong: Execution failed for task ‘:run’. Process ‘command ‘/usr/lib/jvm/java-7-openjdk-amd64/bin/java” finished with non-zero…