2,149 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
2
answers
92
views
insert line with command from one bash file to another
I would like to inject to in docker bash file 2nd line (after #!/bin/bash -x) such a command: set -a && . .env && set +a. I've tried this inside source.sh:
TEXT_INSERT='set -a &&...
0
votes
0
answers
56
views
Combine multiple arguments as a string to be used in a shell command [duplicate]
I'm attempting to use bash to automate exiftool to apply metadata to my media. Because exiftool has to re-write the entire file everytime a tag is modified I want to run the command once per file. ...
2
votes
1
answer
96
views
JSON.parse fails with quotation in template literal
I'm using Editor.js (which saves the HTML blocks as JSON) to create content on my website and it works great unless there is a " in the JSON value.
Data insertion works correctly, but when ...
1
vote
1
answer
59
views
RegEx fails - Looking for subtitle missing quotes
I have this block of text. It comes from a subtitle file.
1[p]00:06:48,564 --> 00:06:50,814[p]Chúng ta đâu cần bận tâm vì bị đuổi khỏi trường.[pp]2[p]00:06:50,864 --> 00:06:53,914[p]...
8
votes
2
answers
155
views
split partially quoted, comma-separated string
In R, I have some rather unusually formatted strings in a data.frame column that I would like to split by commas (i.e., each element of the column is a string of individual values separated by commas; ...
0
votes
1
answer
116
views
How do I preserve double quotes when executing kubectl exec over ssh?
The context is that I want to write a /tmp/policy.hcl file inside a HashiCorp Vault container from a remote machine that I can then use to write a policy. I am struggling to preserve the double quotes ...
2
votes
1
answer
134
views
Correct Way To Escape Quotes In PowerShell Command Run From Command Line?
I have the following command that I need to run from a batch file:
PowerShell -Command "Start-Process cmd -ArgumentList '/C "MKLINK /D "C:\Folder With Spaces\Another Folder" "%...
1
vote
2
answers
545
views
PowerShell, How to replace or remove extended characters from text file
I have the following text in a file
Title: ├® Standard
Title: ├® Roarinc
Title: EaglesÔÇÖ Nest.
I want PowerShell to normalise this by removing things like "├®" and "ÔÇÖ", but ...
-1
votes
2
answers
117
views
Proper use of quotes in a command substitution - how? [closed]
In a rather large project, I run into the following problem: while calculating the correct command in a bash script, I don't manage to make the script respect the double quote necessary for single ...
0
votes
2
answers
191
views
Terraform Quotes Syntax for Var + formatdate
Terraform = v1.8.2
AWS Provider = >= 5.30 from hashicorp/aws
Trying to use terraform to create an AWS resource name to include the date+time it was created.
This is to serialize the resource for ...
0
votes
1
answer
94
views
Calling a PowerShell script from within a VBScript and the use of quotes in the variable passed (JSON format variable)
I am neither a seasoned VBScript or PS scripting specialist. My monitoring system has a controlling VBScript for opening support tickets, and it now needs to change to accommodate JSON output posted ...
0
votes
1
answer
67
views
Multiple quotes in php echo command [duplicate]
I've tried multiple ways with escapes. I need to utilize php code because in the end there endpoints will be variables. I've read multiple solutions and things like starting and ending php does work, ...
1
vote
1
answer
93
views
TCL lrange command creating arrays for things in quotes
I have following simplified code:
set getevent [exec "show running-config | section UPDATESCRIPTS"]
set geteventsplit [split $getevent "\n"]
foreach entry $geteventsplit {
if {[...
-1
votes
1
answer
117
views
c# - How to match specific character which is not inside quotes
I would like to match all the occurrences of / that are not included in quotes (i.e. ").
For e.g, this would be the result of the matches
HKEY/"SOFTWARE"/"test/123"/
HKEY/&...
3
votes
2
answers
108
views
How do I correctly draw edge between records with Graphviz and Haskell
I'm trying to generate a flowchart with Haskell and the Graphviz binding. I want to create edge between nodes with records as it is possible to do it : https://graphviz.org/doc/info/shapes.html.
I ...