Skip to content

Tag: linux

Unable to get the output using regex

This might be a silly one, but I’m unable to get the required output. I’ve a file named Abc_sfgf_kjwefgk.txt20180929_040845 in a directory. I’m trying to list the file using the command: ls -l Abc_sfgf_kjwefgk.txt[0-9]{8}_[0-9]{4} But it’s giving me error: ls: cannot access ‘Abc_…

How can I determine the URL my git repo is located?

I am to work on a project and I have initialized a git repo on a server. Let’s suppose the URL of the server is foo.bar and the repo is at /var/www/vhosts/foo.bar/httpdocs I have created a git repo by running and then I created a .gitignore file, added whatever needed to be added, committed and from my …

Create files in subdirectories with the same name [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago. Improve this question Reading a list with A and B data in 2 columns, iterating row by row, I was createding a seri…

retrieve fact info based on variable in puppet

I have these facts: So with the main_ip fact I need to retrieve the interface that host it. I have try the following to compare the ip: but I cannot retrieve the value of the fact with the variable i’m giving… Can you please advice me how to find the value of the fact with the variable information…

Docker install on Linux Mint 19 Tara [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Closed 4 years ago. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-top…

.net core date format on Linux

I’m migrating my code from .net framework to .net core and testing it on a Linux machine, one of the issues I had a problem with is the date format when calling DateTime ToString() function, in Windows the default date format is guided by the OS and can be customized in the settings I’ve tried to …

How to debug .bsh file from eclipse or otherwise

I have a .jmx within which there is a .bsh being invoked and it is failing there with the below error: I need to troubleshoot and figure out the root cause. Any pointers in this regard would be great. I have this .jmx being invoked from within Java application but I get the same error during execution both fr…