241 questions
-1
votes
1
answer
121
views
Create multiple modified versions of a script for submission to cluster
I am trying create child scripts from one parent script where a few parameters are modified (48 child scripts, so automation would be preferred). My intention for this is to run different Modelica ...
0
votes
1
answer
392
views
Converting SystemVerilog Structs Into C/C++ Structs
Somewhere in my environment, there's a large file that contains (among other stuff) many System Verilog structs of 64 bits,
e.g.:
typedef struct packed {
logic [63:63] my_field_1;
logic [62:...
0
votes
1
answer
80
views
Trouble with 'keydown' Event in Chrome Extension: Capturing Backspace Action
I am creating a Chrome extension (code here) and am having trouble with the "keydown" event. I want to use it to capture a 'backspace' before it happens, in order to switch the text the user ...
0
votes
1
answer
112
views
How do I combine multiple IF statements using different parts of a String in Excel?
Based on a String input, I need to output the meaning of the String based on different criteria's. The String length will always be 8 Characters and the first four and last two characters mean ...
3
votes
1
answer
228
views
Replace multiline section of a file with a multiline string, both containing special characters and escape sequences
I have a file which has a section like the following, only one key/value pair is provided but there could be N number:
"Section Name"
{
"Key" "{\"...
1
vote
1
answer
56
views
How to split and concate text separated by commas with the corresponding text in the pposing column in pandas
So I'm trying to join text separated by commas in one column, and join it with the text in corresponding position in the opposing column. English isn't my first language but I think that the photo ...
0
votes
0
answers
121
views
Limit each line in a text file to 152 characters using PowerShell
I had a text file with multiple lines. Our software is not picking up files with characters more or less than 152 characters per line. So, I need a PowerShell script to limit the number of characters ...
0
votes
2
answers
64
views
How to break a string based on a word in a txt file with batch script
I have been reading around here for several days, and I have found many shared scripts but it doesn't appear that those shared here can help me with my request, I have also looked online and I can't ...
0
votes
1
answer
170
views
How to print each column of strings separately in python?
I have used python to print a string "aaaaabbbbbccccc" into 5 separate columns of characters. I have not used an array to do this.
a a a a a
b b b b b
c c c c c
Now I want to print each ...
1
vote
1
answer
90
views
How to remove multi-line blocks of text of varying sizes from a file given the first and last lines and a substring?
I have an xml file listing several games and their metadata, like so:
<?xml version="1.0"?>
<gameList>
<game>
<path>./Besiege.desktop</path>
...
0
votes
1
answer
50
views
How can I remove a list of substrings, then find and delete the first TAB and after in a CSV with multiple lines?
Example of my dataset "doc name with spaces.csv" (with anonymized data) file that has multiple lines.
Length of file will be variable from day to day as part of an export.
Patient Full Name ...
0
votes
2
answers
97
views
Data extraction for specific string
I have a long list of JSON data, with repeats of contents similar to followings.
Due to the original JSON file is too long, I will just shared the hyperlinks here. This is a result generated from a ...
0
votes
2
answers
79
views
place the symbol
to add certain symbol after every three got splited lines Something like that?? -
print('@'.join(st_text[i:i + 3] for i in range(0, len(st_tex), 3)))
0
votes
3
answers
990
views
Take only letters from the string and reverse them
I'm preparing for my interview, faced the problem with the task. The case is that we're having a string:
test12pop90java989python
I need to return new string where words will be reversed and numbers ...
2
votes
4
answers
149
views
Given a logfile.txt, I want to extract the java script name only; e.g. filename.js using a bash script
I use following awk script to do so,
for line in $1
do
grep -F ".js" $1 | awk '{print $7}' | sort -u
done
the out put is almost there:
/blog/wp-includes/js/swfobject.js?ver=2.2
/fla/...