Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

I understood that it's common sense to return the worker code as string but debugging and coding is a bit ackward this way. Such at this position, where I would like to concat several string to copy ...
2 votes
2 answers
336 views

I can't get this batch script to work, even though I tried a lot of things, I'm now stuck. The intention is for the batch script to re-run itself elevated, using PowerShell and Start-Process, if the ...
-1 votes
3 answers
150 views

There are five single quotes before and after text i like this: h = '''''i''''' print(h) Output: ''i How come?
2 votes
2 answers
254 views

I want to run a command on Azure Postgres Flexible Server via a PS1 (PSCore) script. The password can contain characters like < and ) that the PSCore parser chokes on. I'm attempting to use the az ...
1 vote
1 answer
78 views

My Docker Compose is acting up, starting from https://stackoverflow.com/a/30064175, I have something like: services: stuff: image: alpine entrypoint: [ "/bin/sh", "-c" ] ...
1 vote
1 answer
72 views

I am having problem with powershell arg design like this powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& { $scriptContent = Get-Content -Path 'C:\path\to\your\script.ps1' -Raw; $...
0 votes
0 answers
49 views

I hope I have not fallen victim to the intricacies of shell expansion, but to me it seems dash treats quoting different depending on whether it's on an interactive command line, or in a script. I have ...
0 votes
0 answers
42 views

Suppose I have the following variable in a bash script cmd='echo hi | wc'. Since I forgot how many characters are in the string "hi", I want to run cmd. I expected this be as simple as ...
Mark VY's user avatar
  • 1,731
2 votes
1 answer
99 views

When I’m specifying gitrevisions in pwsh (eg HEAD@{3}), I have to conditionally remember to surround the gitrevision with quotes. If I don’t, it treats "@" as an array sub-expression operator. Example:...
0 votes
2 answers
226 views

In zsh, how can I use brace expansion for an argument containing spaces supplied from a variable? e.g., I want to rename a file from ~/a b/1.txt to ~/a b/2.txt. I can do this manually from the command ...
XDR's user avatar
  • 4,580
2 votes
2 answers
255 views

I am executing a Python script using a PowerShell command, The Python script takes a string that could contain special characters inside it. This parameter is passed from an ansible pipeline. The ...
0 votes
1 answer
37 views

I am trying to write a bash script to create a filename using some variables, I should add "-" character in some places to obtain the correct filepath. However when I use the following ...
0 votes
1 answer
32 views

I have a list of arguments, some which contain spaces, stored in a variable. When the command is invoked the arguments are not interpreted correctly. Here is a minimal example which illustrates the ...
2 votes
1 answer
136 views

I'm running this command, to change "Text to replace" in text files with the basename the text file: parallel --dry-run sed -i \"s/Text to replace/{.}/\" {} ::: *.txt However, ...
0 votes
1 answer
342 views

I have various other Linux distros on other partitions and am trying to write a command called "on" that will run a shell command in that distro as the same user and in the same directory as ...

15 30 50 per page
1
2 3 4 5
...
44

AltStyle によって変換されたページ (->オリジナル) /