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…
Tag: linux
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…
job can’t be submitted inside sge file
I want to submit a sge job via sge file. For example, I have run.sge file as follows: And run_inp.sge file as follows: Whenever I submit job via I got this error: But if I submit run_inp.sge directly, it works fine: My question is that can I submit sge jobs inside a sge job? If not, is there alternative way
How do I escape spaces in file paths when iterating in a for loop with a shell script in Linux?
I am writing a shell script in Linux that takes a file path and iterates over all files in the path. When a file is found it performs some logic. If a folder is found the function calls itself passing the folder as an argument. It works well unless there is white space in the folder path. Answer Double quotes
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…
SSH: How to replace an empty passphrase with a non-empty passphrase in script
In script I need to add a passphrase to a pirvate key that has empty passphrase. I have just tried this: Answer ssh-keygen has a command-line option to specify the new passphrase (and the old one, if the key already has a passphrase): ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile] [……
How to connect an embedded device to Internet via a Windows 7 PC’s Shared Internet Connection (ICS)? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. 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-topic on another Stack …
creating a scheduled task to create an incremental backup of our system files every day [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. 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-topic on another Stack …
+ 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
Search for a mention of each filename contained in a directory, in every file in the directory
I’m trying to perform a search in my directory, to count the total number of times each individual file is referenced within the contents of all the files in the directory. Essentially, I’m trying to more efficiently recreate the copy and paste of each ‘filename’ into the ‘search…