quotes Questions
8
Solved
I have a table test(id,name).
I need to insert values like: user's log, 'my user', customer's.
insert into test values (1,'user's log');
insert into test values (2,''my users'');
insert into t...
Caressa asked 7/9, 2012 at 11:11
8
Solved
I want to run a command from a bash script which has single quotes and some other commands inside the single quotes and a variable.
e.g. repo forall -c '....$variable'
In this format, $ is escape...
10
Solved
I have a python editor where the user is entering a script or code, which is then put into a main method behind the scenes, while also having every line indented. The problem is that if a use...
11
Solved
I'm using jQuery's .data() to work with custom HTML5 data attributes where the value of the attribute needs to be able to contain both single quotes and double quotes:
<p class="example" data-...
Decoration asked 31/8, 2011 at 16:22
6
Suppose I have a #!/bin/sh script which can take a variety of positional parameters, some of which may include spaces, either/both kinds of quotes, etc. I want to iterate "$@" and for each argument...
5
Solved
The following code
number=1
if [[ $number =~ [0-9] ]]
then
echo matched
fi
works. If I try to use quotes in the regex, however, it stops:
number=1
if [[ $number =~ "[0-9]" ]]
then
echo matche...
2
Solved
Perhaps this is an easy question, but I haven't figured out how to do this:
I have a string slice in Go, which I would like to represent as a comma-separated string. Here is the slice example:
exam...
2
I am not able to extract quoted strings using JSON_EXTRACT function in MySQL 5.7.
Sample input:
{
"email": "d'[email protected]",
"body": "I may have "random quotes '(single)/(double)" " i...
6
Solved
I'm trying to run the following commands:
replace -x "must " A2input.txt
replace -x " a" -f -s ## A2input.txt
replace -x to -s ## -a A2input.txt
replace -x faith -f "unequivocal" A2input.txt
And...
8
Solved
I am trying to write a YAML dictionary for internationalisation of a Rails project. I am a little confused though, as in some files I see strings in double-quotes and in some without. A few points ...
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 ...
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
4
Solved
Help I can't get this to work, I am trying to put the variable age into the string but it won't load the variable properly.
Here is my code:
import random
import sys
import os
age = 17
print(ag...
6
Solved
I'm using Eclipse Juno on MacOSX Lion and have an issue with typing.
I often print one quote/apostrophe and move the caret. But in this Mac version of Eclipse the quote as I type is highlighted by...
Spectroscope asked 4/10, 2012 at 8:27
2
Solved
I know similar questions have been asked before, but they all seem to have been resolved by reworking how arguments are passed (i.e. using a list, etc).
However, I have a problem here in that I d...
Enalda asked 2/4, 2016 at 23:16
7
Solved
In Bash, what are the differences between single quotes ('') and double quotes ("")?
Sexdecillion asked 14/7, 2011 at 17:55
7
Solved
In Bash, what are the differences between single quotes ('') and double quotes ("")?
Ackerman asked 14/7, 2011 at 17:55
7
Solved
In Bash, what are the differences between single quotes ('') and double quotes ("")?
Godlike asked 14/7, 2011 at 17:55
21
How do you run the following command in PowerShell?
C:\Program Files\IIS\Microsoft Web Deploy\msdeploy.exe -verb:sync -source:dbfullsql="Data Source=mysource;Integrated Security=false;User ID=sa...
Requite asked 4/11, 2009 at 14:10
12
Solved
Can anybody help with effective and safe way of removing quotes from batch variables?
I have written a batch file which successfully imports a list of parameters %1, %2, %3 etc. and places them int...
Hendon asked 26/12, 2009 at 19:48
7
Solved
What is the difference between single quotes and double quotes in SQL?
3
Solved
I am using CsvHelper I need to wrap all values with quotes.
Is that possible?
Data = is a List
using (StreamWriter textWriter = new StreamWriter(path))
{
textWriter.BaseStream.Write(p, 0, p.Leng...
Lipkin asked 1/1, 2019 at 13:38
6
Solved
How would I go about replacing all of the double quotes in my batch file's parameters with escaped double quotes? This is my current batch file, which expands all of its command line parameters ins...
Compressed asked 18/2, 2009 at 17:19
5
Solved
I am trying to execute the following line in Command Prompt:
curl -X POST -d '{ "method" : "account_info", "params" : [ { "account" : "rHb9CJAWyB4rj91VR...
Sphere asked 10/7, 2013 at 1:8
7
Solved
Seems that the recommended way of doing indirect variable setting in bash is to use eval:
var=x; val=foo
eval $var=$val
echo $x # --> foo
The problem is the usual one with eval:
var=x; val=1...
Bombshell asked 30/3, 2012 at 7:24
© 2022 - 2025 — McMap. All rights reserved.