Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
1 answer
118 views

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 ...
Luis Enriquez-Contreras's user avatar
0 votes
1 answer
384 views

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:...
Benny80's user avatar
  • 15
0 votes
1 answer
76 views

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 ...
StckSmsh's user avatar
0 votes
1 answer
111 views

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 ...
ukiyo1738's user avatar
3 votes
1 answer
223 views

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" "{\"...
Eamonn's user avatar
  • 710
1 vote
1 answer
56 views

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 ...
Henry's user avatar
  • 11
0 votes
0 answers
119 views

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 ...
SV12 VS's user avatar
  • 27
0 votes
2 answers
64 views

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 ...
James Thomas's user avatar
0 votes
1 answer
168 views

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 ...
Auras's user avatar
  • 13
1 vote
1 answer
87 views

I have an xml file listing several games and their metadata, like so: <?xml version="1.0"?> <gameList> <game> <path>./Besiege.desktop</path> ...
Calibre's user avatar
  • 13
0 votes
1 answer
50 views

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 ...
Alex Barber's user avatar
0 votes
2 answers
97 views

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 ...
austin7923's user avatar
0 votes
2 answers
79 views

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)))
gfffh's user avatar
  • 3
0 votes
3 answers
985 views

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 ...
Kermi's user avatar
  • 247
2 votes
4 answers
149 views

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/...
Arturo Rubio's user avatar
0 votes
2 answers
40 views

I have a *.txt file with numbers. I want to eliminate the spaces. The raw data looks like this 12 12345 1234 23 23456 234 If I use the following data=data[0].str.replace(" ","") ...
Towlie's user avatar
  • 77
0 votes
2 answers
80 views

I have a text file containing details of about 1000 articles, each containing the same items (PMC, PMID..... AID, SO). I need to have every article details as a single row such that the item names are ...
Nile's user avatar
  • 99
3 votes
1 answer
225 views

How do I include symbols into the record separator of awk. I know the basic syntax like this: awk 'BEGIN{RS="[:.!]"}{if (tolower($0) ~ "$" ) print $0 }' which will separate a ...
Ardie's user avatar
  • 35
0 votes
2 answers
81 views

I'm looking for all the files in a directory that contain "AAA" and "BBB". I then want to modify/do stuff with each of the found files. The file names do contain spaces. grep ...
Duncan Wither's user avatar
2 votes
4 answers
121 views

I have a huge text file (thousands of lines) containing chuncks of information (previously filtered) which are separated by an empty line. Example with a few of them: Name: CAR 8:1 Precursor type: [M]+...
Christ14n97's user avatar
1 vote
0 answers
76 views

I have 14680 text files and after certain String I want to delete all the lines in each text files, how to accomplish this using python Thanks and Regards
Chandrakanta Das's user avatar
1 vote
1 answer
2k views

I have this JSON data : some-json-file which contains the following { "result": [ { "id": "1234567812345678", "name": "somewebsite.com&...
madacoda's user avatar
  • 414
0 votes
1 answer
34 views

I have sort of more general question on the process on working with text data. My goal is to create UNIQUE short labels/description on products from existing long descriptions based on specific rules. ...
HeadOverFeet's user avatar
1 vote
4 answers
320 views

I am looking for a way to filter a (~12 Gb) largefile.txt with long strings in each line for each of the words (one per line) in a queryfile.txt. But afterwards, instead of outputting/saving the whole ...
Piers's user avatar
  • 21
0 votes
0 answers
1k views

I'm trying to make a program (I have been using AutoHotKey) to manipulate Excel formulas to show what's happening. An example of what I want to do: Cell A1: 1 Cell A2: 1 Cell A3: =A1+A2 (shown as 2 ...
Mikifp's user avatar
  • 1
1 vote
1 answer
790 views

I am having trouble deleting all empty arrays from a JSON file with jq. I've tried: walk(if type == "array" then map(select(length > 0)) else . end) which removes empty strings, but the ...
Katja Eichelberger's user avatar
0 votes
2 answers
2k views

I am trying to add some text to an existing element using textContent. But when I use +=(addition assignment) operator but in the result, already existing tags like b has lost its effect. I think I am ...
Anon's user avatar
  • 169
-1 votes
2 answers
109 views

I have a problem as I am a total beginner to Python, now learning text-manipulation. I am trying to extract the five longest words in a text, create a list with those items and order them ...
clarkens's user avatar
1 vote
1 answer
275 views

I need to be able to merge as separate columns files with millions of lines. I tried using the suggested code here: @echo off set f1=1.txt set f2=2.txt set outfile=mix.txt type nul>%outfile% ( ...
greektranslator's user avatar
0 votes
1 answer
80 views

I'm getting 2 arguments inside a script and I want to replace part of the string in arg1 based of the format of arg2, where DATEFORMAT is the reserved word for the placeholder. For example: ]$ ./a.sh ...
Nir's user avatar
  • 2,677
0 votes
1 answer
406 views

I want to write a function that converts CamelCase to snake_case without using tolower. Example: helloWorld -> hello_world This is what I have so far, but the output is wrong because I overwrite a ...
user avatar
1 vote
2 answers
466 views

I'm using PowerShell to concatenate social media log files and Facebook, in their infinite wisdom, have added a SECOND row to their header line. I currently use this: Get-ChildItem -Filter *.csv | ...
John Eddy's user avatar
1 vote
0 answers
561 views

I have executed the following commands from Azure Automation(to run inside a VM). I tried all file write commands(Out-File, Add-Content, Set-Content) but the output string always comes in multiple ...
Blue Clouds's user avatar
  • 8,382
1 vote
1 answer
121 views

I want to replace empty values with part of the text I find in another variable in Pandas. To achieve this, I need to make use of a regex expression to extract the exact text value I want transferred, ...
Gisle_B's user avatar
  • 47
0 votes
1 answer
195 views

I have a column named "body" and in this columns there many rows that contain hyperlinks in text. is it possible in power bi to count if there is a hyperlink in text then create a new ...
Sädnän Møhøsïn's user avatar
0 votes
4 answers
1k views

I have a file like the following: SCN DD1251 UPSTREAM DOWNSTREAM FILTER NODE LINK NODE LINK LINK ...
RevolverOshawott's user avatar
0 votes
1 answer
180 views

I have a text config file which is like this: config server 'server' option url 'https://chef.libremesh.org' config client 'client' option upgrade_packages '1' option ...
SSAnkur's user avatar
0 votes
2 answers
1k views

I have this file and I would like to be able to write text n lines before the end of the file in python, I know the write method exists however it only inserts text at the very end of the file. I ...
Louis Wheelz's user avatar
0 votes
2 answers
587 views

I copy /etc/default/keybord and make a keyboard2 file. When I cat the file I get : # KEYBOARD CONFIGURATION FILE # Consult the keyboard(5) manual page. XKBMODEL="pc105" XKBLAYOUT="fr&...
av3rag3's user avatar
  • 11
0 votes
0 answers
54 views

I'm maintaining a network monitoring tool, and am trying to set up custom polling for trunk interfaces. The tool has its own proprietary scripts that do a variety of things. So far, I have a script ...
mjobusch's user avatar
0 votes
0 answers
877 views

I have a large dataset and I wanted to read it in with fread, taking advantage of the select argument to only pick columns I need for this specific analysis. I was wondering if anyone knows a way that ...
Kawi's user avatar
  • 29
1 vote
2 answers
139 views

I'm trying to remove some part of a string in order to isolate a value of a sentence. I would like to store the thing that is liked in a var called thingLoved. So when you type "I love cats" ...
Aurore's user avatar
  • 746
0 votes
1 answer
278 views

I have been looking around for a way to quickly and easily rename hundreds os files in one go. something where I only have to change smalle parts for it to be reused somewhere else. So i ended up ...
Kasper's user avatar
  • 35
0 votes
1 answer
727 views

I have a csv that is like the below (Note: values in Name column are not limited i.e. not only ABC and DEF): Name, Type, Text ABC, Type A, how ABC, Type A, are ABC, Type A, you ABC, Type B, Your ABC, ...
LVA's user avatar
  • 39
0 votes
1 answer
73 views

Suppose I have a simple text file named "test.txt" of the format below A=-1.1,2.2,-3.3,4.4B My intention is to extract data -1.1, 2.2, -3.3 and 4.4 in Matlab from the text file. How could I ...
Emerson P L's user avatar
0 votes
1 answer
1k views

I was looking other answers, and they are all based on something like this: .text-limit{ line-height:20px; height: 20 * n. lines; overflow: hidden; } However what i want i something like ...
Alberto's user avatar
  • 13.1k
1 vote
3 answers
109 views

Is there a way to split a string into an array of exactly two parts when a number is encountered (preferably using split())? Examples: "Nutritional Value per 100 gram" ==> ["Nutritional Value per", "...
A. Vasilev's user avatar
3 votes
0 answers
246 views

How can I retain the numbering of paragraphs when extracting text from a docx file? I'm doing some NLP-ML work on a bunch of docx files, and to begin with I need to break up each doc into a dataframe. ...
mendy's user avatar
  • 369
1 vote
2 answers
166 views

I have been trying to tackle a problem I am having extracting text from a website and filtering it to get the information I want. I have gotten to the point where I create a TextEdit file from the ...
just_dabbling's user avatar
-1 votes
2 answers
133 views

I have a file such as this: ME45 P 1311 41130 1.253 ME39 P 1311 41130 7.700 ME38 P 1311 41130 7.776 ME37 P 1311 41130 8.285 ME36 P 1311 41130 8.689 ME30 P 1311 4113010.252 ME26 P 1311 ...
dex10's user avatar
  • 109

1
2 3 4 5