Skip to content

Tag: linux

echo does not print a variable in bash

I’m facing a very strange issue. I have 2 files ber_log_before.txt and ber_log_after.txt. Their contents are ber_log_before.txt ber_log_after.txt There are $ it’s normal. Then I wrote a basic bash command to parse them Why 1st val 14 2em val 24 is not echoed??? If I replace by Then at least I have…

Renjin can’t load pckages

I’m a newbie with Renjin. I’m trying to use Renjin in a Java application. I’m trying to develop the example showed here. I’m compiling with gradle, as recommended in the renjin’s web page. So, with gradle build all is ok when I run gradle build. But, when I want run the applicati…

Bash Create Directories/Subdirectories Using Two Lists

I would like to create a number of directories, each with a number of subdirectories based on two lists using Bash. Currently, the below code achieves this result: Yields Question: Is there a cleaner (non-single-line) way to achieve the same result, perhaps storing the two lists as arrays or variables and usi…

+ Regular Expression not working in sed

Team, I have a file with data as mention below. Expected Output: I am using sed its not working . Please Let me know how to achieve the above mention output. Answer This might work for you (GNU sed): This method matches the numbers at the front of the string with strings appended to the end of the line and