Skip to main content
0 votes
3 answers
161 views

Execute command in shell script not working with dollar sign

I have the below command which works fine when I try to execute via cmd line s3cmd ls $'bucket/raw_data/filename' Now , I have lot of file , I try to do the above via shell script, where I take input ...
Dot Net Dev 19's user avatar
0 votes
2 answers
215 views

Bash: Reading in a string from a file with variable substitution

I have a weird situation where I have a command stored in a file and that file contains references to variables. I'm able to read the file just fine, but I'm having trouble getting variable expansion ...
SailorCire's user avatar
2 votes
1 answer
978 views

File-transform-task in Azure DevOps release-pipeline not substituting variables

In my project, there is a Webservice.settings containing 3 variables. (Structure of Webservice.settings) I intent to set these variables with my release-pipeline (Azure DevOps). Therefore, I created a ...
Nepomuk's user avatar
  • 31
0 votes
1 answer
23 views

Makefile: Substituting suffix of variable before evaluation

QUESTION: I would like to write a Makefile with a loop, which prints the contents of variables whose names contain the loop counter. EXAMPLE: For example, I would like something like the Makefile ...
Sophia Goulimis's user avatar
0 votes
0 answers
133 views

Variable substitution: How to update values in a json file and then save the output of the now substituted file

I have a script that I want to do variable substitution on a json file. It takes json file A and json file B and converts it into a dynamic object. So you end up with something like this: For Json ...
polo's user avatar
  • 425
0 votes
2 answers
328 views

Can a Gnu Make variable substitution expression match more than one pattern?

Say I have a list of files with mixed suffixes, e.g. .cpp and .c, and I want to make a list where each .cpp and each .c extension is changed to .o. I realize I could sequentially process my list ...
Michael57's user avatar
1 vote
2 answers
406 views

Environment variables substitution in C

I have a string with the following content (UTF-8): __$FOO ${FOO} ${FOO:def} ${FOO2:-тест} And environment variable FOO with a value test. My C application should work like a GNU envsubs - replace ...
Paramtamtаm's user avatar
-4 votes
1 answer
49 views

Excel Summing Un-Formatted Numbers [closed]

I'm trying to find an average of a large array of candidates compensation. Some of the cells contain text with multiple numbers showing a range such as, "$100k - $120k". Others are labeled ...
Iceyz's user avatar
  • 3
2 votes
1 answer
121 views

Call a .NET method with part of the method name replaced by a variable

Here is a simple command that I would like to use a variable in. (Get-Date).AddDays(-30) What I'm trying to do is substitute a variable $Time for the word Days. $Time="Days" OR $Time="...
user2893271's user avatar
0 votes
1 answer
540 views

How to add variables in a call to Start-Process

I'm building a PowerShell script to run the following command on various servers: arapx acc, Export ExportFile=\"C:\\Temp\\DEV_Refresh\\AccExport.txt\" This code works: Start-Process -...
Ken's user avatar
  • 409
1 vote
2 answers
563 views

Azure DevOps Pipeline Json Variable Substitution - Ocelot.json

I have the following file ocelot.json and I want to change the Host object of each route configured inside the file through a variable. I want to change the localhost to the correct hostname through a ...
camilo-cajamarca's user avatar
0 votes
1 answer
1k views

Passing variables from bash script into Oracle SQL*Plus

I've tried a few different methods (from here and elsewhere) with no success and was hoping if one of the more experienced individuals of yourselves would be able to help. This is my shell script read ...
LJMurru's user avatar
0 votes
2 answers
42 views

Embedded parameter substitution

This is what parameter substitution would be one by one (transforming a picture file name into a date) : var=“2020-12-30 11-30-55CX.mov” p1=${var:0:11} pt=${var:11:8} p2=${pt//-/:} dt=“${p1} ${p2}” I ...
Guasqueño's user avatar
0 votes
1 answer
5k views

Getting a count of rows inserted in a Snowflake procedure

I'm using a procedure to insert rows into a table. I want to return the count of rows inserted, but I can't figure out how to turn on the variable substitution from inside a procedure. I've tried all ...
ASturt's user avatar
  • 373
0 votes
1 answer
165 views

Substituting variable in a dataframe row based on other row's value

I have a dataframe that contains ID, Formula, and a dependent ID column that I extracted the ID from the Formula column. Now I have to substitute all the dependent ID into the formulas based on the ...
user10969675's user avatar

15 30 50 per page
1
2 3 4 5