quoting Questions
5
I'm trying to call popen() using mingw like this:
#define RUN_COMMAND "\"C:\\Program Files\\CA\\BrightStor ARCserve Backup\\ca_qmgr.exe\" \"-list\""
int main() {
outputPointer = popen(RUN_COMMAND...
1
Solved
How to pass a string with spaces to a command which returns itself a string with spaces?
I tried the following four versions.
arg='one arg'
arg() { echo "arg: $1"; }
printf '1 |%s|\n' $(arg "$a...
2
Solved
I want to store /c/users/me/dir name into a variable to pass it to cd system call.
Works when typing:
$ cd '/c/users/me/dir name'
or
$ cd /c/users/me/dir\ name
but does not works if I store i...
2
I've googled and tried so many things and never could get anything to work with ${parameter@operator}. All I find is more links to the same documentation. So I think a proper answer with practical ...
Warranty asked 22/11, 2016 at 1:6
2
Solved
I'm getting some troubles to use a password with special characters such as $ in a bash shell script.
My shell script is :
read -s -p "Password : " bindDNPass
ldapadd -H ldap://localhost -x -w $...
2
Solved
I'm contemplating to make all bash scripts of a large codebase shellcheck compliant, but the task is overwhelming, because too many developers have historically ignored rule number one of all shell...
Thirddegree asked 12/12, 2016 at 15:27
2
Solved
So I have a problem below, but my question is more generic - how to see exact content of memory referenced by bash variable to understand why they don't match:
# [[ $c1 == $c ]] || echo nope
nope
...
3
I'm trying to understand why Bash removes double quotes (but not single quotes) when doing variable expansion with ${parameter:+word} (Use Alternate Value), in a here-document, for example:
% var=...
1
Solved
Could someone lay out clearly the various quoting mechanisms available for metaprogramming in Julia, and illustrate each one with a minimal example?
So that it is clear which to use in which situa...
Schramke asked 11/12, 2016 at 17:35
2
Solved
I am issuing a curl command that would ideally look like this (note that this is incorrect due to lack of escaping):
curl -X POST --data-urlencode 'payload={"channel": "@somebody", "text": "...
2
Solved
I googled a lot but..
How do I escape single quote in command line query of psql ?
psql -t -A -F $'\t' postgresql://zzzz:5432/casedb -U qqqq -c 'select id,ext_ids ->> 'qwe' as qwe from data...
Support asked 29/7, 2016 at 11:38
1
Solved
I know there are lots of posts regarding this, but nothing worked for me.
I am trying to run this command line in PowerShell:
C:/Program Files (x86)/ClamWin/bin/clamd.exe --install
I have this ...
Buenabuenaventura asked 27/6, 2016 at 22:59
2
1
Solved
I have a .text file with following format, where fields (index number, name and message) are separated by \t (tab-separated):
712 ben Battle of the Books
713 james i used to be in TOM
714 tomy i w...
1
Solved
There a very handy function in Python: repr() which when applied on a string containing blank characters will print out a representation of that string that cannot lead to any human misinterpretati...
3
Solved
I'm having trouble forming a bash array from a standard output. I've boiled it down to this minimal example:
~$ a=($(echo '1 2 3 "foo bar"'))
~$ echo ${a[0]}
1
~$ echo ${a[1]}
2
~$ echo ${a[2]}
3
...
1
Solved
I want to apply the same aggregation to multiple data tables, without rewriting the aggregation scheme.
Consider
dt1 <- data.table(id = c(1,2), a = rnorm(10), b = rnorm(10), c = rnorm(10))
dt2...
Madra asked 26/2, 2015 at 23:2
2
Solved
Consider the following:
#!/bin/tcsh
set thing = 'marker:echo "quoted argument"'
set a = `echo "$thing" | sed 's/\([^:]*\):\(.*\)/\1/'`
set b = `echo "$thing" | sed 's/\([^:]*\):\(.*\)/\2/'`
echo ...
8
Solved
Is there anything in the Python standard library that will properly parse/unparse strings for using in shell commands? I'm looking for the python analog to perl's String::ShellQuote::shell_qu...
1
Solved
I am using Seqeulize with Nodejs.
My table name is "Users" and it has a column "userName". I have named the ts vectored column userNameVector. In trying to create the column and set the triggers, ...
Pastorale asked 5/8, 2014 at 16:11
2
Solved
I am trying to write a select query which should return the column value wrapped in single quote. Say the column (ABC) has
Values: 123
567
The query should return the
Output: '123'
'567'
Tidbit asked 5/8, 2014 at 15:56
2
Solved
Why does the string for the -split parameter require two backslashes while the string for the -join parameter requires only one backslash? The backtick is the escape character in Powershell. What d...
Wamsley asked 23/6, 2014 at 20:29
7
Solved
I'm looking for something that will translate a string as follows, using only bash / standard Linux commands:
Single-quotes surrounding a string should be removed
Double-quotes surrounding a stri...
1
Solved
I've cobbled together what is below, and it seems to work, with the possible exception of the "! -empty". One thing I'm learning (as I go) is that just because something works, doesn't mean it's ri...
© 2022 - 2024 — McMap. All rights reserved.