Skip to content

Tag: linux

Compare different columns of subsequent rows to merge ranges

I have a list of ranges, and I am trying to merge subsequent entries which lie within a given distance of each other. In my data, the first column contains the lower bound of the range and the second column contains the upper bound. The logic follows: if the value in column 1 is less than or equal to the

crontab (cronie), run certain days of the month

I want to make a crontab entry which will run on every weekday except the 1st, 2nd, and 3rd of each month. Here’s what I have: I thought that this had the following meaning: That is what I read in the crontab(5) manual page. However, I can see that the job ran at 08:45 today, Monday 2nd October. I am

SQL Server on Linux : Data source name not found

I followed the instructions to install Sql server natively on my machine which runs linux mint sonya based off ubuntu xenial. Ive had no trouble installing the service: When trying to connect the the DB, i get this error: Answer Turns out after all that I did not install the unixodbc-dev package. The error me…

Split file into multiple when special char met

I have a main file as following : My final goal is to create a file that will containt only block that contains a specific string, for example if that string would be lines then I would have an output file like this : To reach my objective, I first try to split my main file into subfiles by bock