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_…
Tag: linux
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 …
Using bash, I want to print a number followed by sizes of 2 paths on one line. i.e. output of 3 commands on one line
Using bash, I want to print a number followed by sizes of 2 paths on one line. i.e. output of 3 commands on one line. All the 3 items should be separated by “:” I am getting the output as – But I want the output as – Answer This should work for you. The two key elements added being
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…
How to cross-compile DLL with exported functions
I’m working through a DLL hijacking exercise, and have a DLL written which works as expected when compiled in Visual Studio. Essentially, when the DLL is loaded, it executes a shell command and passes off legitimate functionality (in this example, the CheckEvenOdd and PrintAMessage functions) to the ori…
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…
Setting GCServer = True when running on Linux in .net core project
How do set GCServer to true in a .net core project? Usually in .net framework projects I add an App.Config xml file that sets GCServer variable to true but this does not work in a .net core project running on Linux (the App.Config file is generated and publish but the variable still doesn’t change) Answ…
.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…