python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Missing file specification after redirection operator
I got the following error:
| cat << EOF > config.yaml
| ~
Missing file specification after redirection operator.`
my code in power shell is following
cat << EOF > config.yam...
usman khan
Votes: 0
Answers: 1
oc exec with heredoc: cannot pass variable into command to execute in container; rpc error: code = 2 desc = oci runtime error
I want to use oc exec to execute a cat in my pod. In this cat command I need to expand some variable.
cat /opt/amq/data/split-$index/running
So, I try this:
oc exec -i $pod -- '"/bin/bash" ...
WesternGun
Votes: 0
Answers: 1
How does ANSI C-Quoting in Herestrings work?
Why is this not working?
bla="
multi
line
string
"
cat -A <<EOF
${bla//\$'\n'/\\\$'\n'}
EOF
this works:
cat -A <<EOF
$(cat <<<${bla//$'\n'/\\$'\n'})
EOF
as noted in ...
Booker B
Votes: 0
Answers: 2