quoting Questions

4

Solved

I am trying to download a Google sheet via a batch file. This works: powershell -Command "Invoke-WebRequest https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/export?exportFormat=tsv -OutFile o...
Kemme asked 28/2, 2019 at 1:40

21

Solved

I need to read these bash variables into my JSON string and I am not familiar with bash. any help is appreciated. #!/bin/sh BUCKET_NAME=testbucket OBJECT_NAME=testworkflow-2.0.1.jar TARGET_LOCAT...
Lavalley asked 26/1, 2018 at 21:48

2

Solved

After updating to Python 3.12, I get warnings about invalid escape sequence on some triple-quotes comments. Is this a new restriction? I have the habit of documenting code using triple-quoted strin...
Bettyannbettye asked 22/11, 2023 at 15:25

5

Solved

I have the following bash script which repeats for each image found. It needs to iterated over all html, css and js files, and replace all occurrences of an image within that file. for image in a...
Halfandhalf asked 2/4, 2017 at 18:1

13

Solved

I am using awk to perform counting the sum of one column in the csv file. The data format is something like: id, name, value 1, foo, 17 2, bar, 76 3, "I am the, question", 99 I was using this aw...
Sulemasulf asked 29/6, 2010 at 6:35

6

Solved

Is there any shortcut or extension for vscode which can help to remove surrounded quotes (single ' or double " ) around a selected text? See example below 'hello' ==> hello In other words, is it...
Skippet asked 16/11, 2016 at 13:51

21

Solved

How can I quickly quote/unquote words and change quoting (e.g. from ' to ") in Vim? I know about the surround.vim plugin, but I would like to use just Vim.
Satterfield asked 27/1, 2010 at 15:1

3

Solved

The following command works fine on Ubuntu bash: kubectl patch deployment wapi-backend-d1 --patch '{"spec": {"template": {"metadata": {"labels": {"date": "test"}}}}}' The same command does not w...
Drayton asked 9/4, 2019 at 23:13

1

Solved

I use WinSCP within a Powershell script. It suddenly stopped working. After a while I could figure out that the problem appeared from a more recent version of PowerShell: Reduced code: & winscp...
Elisha asked 15/11, 2022 at 3:27

5

Solved

I'm trying to pass a JSON string from within a powershell script to the build.phonegap.com api, using curl. According to phonegap's forum, when running on a Windows machine, the JSON data has to be...
Intracranial asked 14/7, 2014 at 20:58

14

Solved

Is there a native function or solid class/library for writing an array as a line in a CSV file without enclosures? fputcsv will default to " if nothing is passed in for the enclosure param. Google ...
Lousewort asked 25/11, 2009 at 23:31

4

According to the Google Shell Style Guide, I should: Always quote strings containing variables, command substitutions, spaces or shell meta characters, unless careful unquoted expansion is requi...
Legislate asked 20/6, 2016 at 20:48

12

Solved

When I want to do a print command in Python and I need to use quotation marks, I don't know how to do it without closing the string. For instance: print " "a word that needs quotation marks" " ...
Finical asked 29/1, 2012 at 2:14

4

Solved

I'm trying to use f-strings in python to substitute some variables into a string that I'm printing, and I'm getting a syntax error. Here's my code: print(f"{index+1}. {value[-1].replace("...
Inmesh asked 14/5, 2021 at 20:7

25

Solved

Let's say, you have a Bash alias like: alias rxvt='urxvt' which works fine. However: alias rxvt='urxvt -fg '#111111' -bg '#111111'' won't work, and neither will: alias rxvt='urxvt -fg \'#11...
Toweling asked 8/8, 2009 at 22:50

6

Solved

Either I missed some backlash or backlashing does not seem to work with too much programmer-quote-looping. $ echo "hello1-`echo hello2-\`echo hello3-\`echo hello4\`\``" hello1-hello2-hello3-echo ...
Chlorella asked 17/4, 2010 at 2:43

4

Solved

I'm writing a utility (which happens to be in python) which is generating output in the form of a TCL script. Given some arbitrary string variable (not unicode) in the python, I want to produce a T...
Loupgarou asked 14/3, 2011 at 17:29

2

Solved

$computer = gc env:computername # Argument /RU '$computer'\admin isn't working. SchTasks /create /SC Daily /tn "Image Verification" /ST 18:00:00 /TR C:\bdr\ImageVerification\ImageVerification.exe ...
Basidiomycete asked 12/9, 2012 at 18:11

4

Solved

Need help in fixing this bash script to set a variable with a value including double quotes. Somehow I am defining this incorrectly as my values foo and bar are not enclosed in double quotes as nee...
Historical asked 22/4, 2017 at 22:41

2

Solved

Sorry if this is documented somewhere, but I haven't been able to find it. When using brace delimiters with qq, code is not interpolated: qq.raku #!/usr/bin/env raku say qq{"Two plus two&quot...
Born asked 22/8, 2021 at 23:24

1

Solved

This self-answered question aims to give a systematic overview of the PowerShell CLI (command-line interface), both for Windows PowerShell (powershell.exe) and PowerShell (Core) v6+ (pwsh.exe on Wi...

1

Solved

I'm using environment files to configure web apps. Recently i had the need to export a value like this: RUBYOPT='-W:no-derecated -W:no-experimental' This is contained in a file test.env with other...
Enunciation asked 24/3, 2021 at 11:56

2

Problem Description Using Python 3.7.6 on Windows 10, I'm trying to upgrade a package installed directly from a git repository: pip install --upgrade git+https://url.of.my/py/package.git The ins...
Mohock asked 29/4, 2020 at 21:9

7

Solved

I want to use a constant in PHP, but I also want to put it inside double quotes like a variable. Is this at all possible? define("TESTER", "World!"); echo "Hello, TESTER"; obviously outputs "Hel...
Jubal asked 14/10, 2009 at 0:16

1

Solved

I have this YAML file (I distilled my question to the bare minimum): scalar: simple_value empty: list: - 1 - 2 - 3 complex: - first: one: 1 two: 2 - second: one: 3 two: 4 weird: "{{ '...
Dunbar asked 4/12, 2020 at 8:8

© 2022 - 2024 — McMap. All rights reserved.