Skip to main content
0 votes
1 answer
30 views

I can't recall (and can't work out) if there is a way to have a cmd FOR loop nested within another FOR loop where for each outer FOR loop iteration, the inner FOR loop is iterated. For example: FOR /F ...
skeetastax's user avatar
  • 1,816
Advice
0 votes
9 replies
89 views

The task is to show line with variables from one variable (substitute like echo "${!VAR_NAME}" but for multible variables at once) i e g l=$(head -1 "$table") #this header can vary ...
Ivan's user avatar
  • 61
4 votes
2 answers
150 views

For background, I am working to create a version of minesweeper that runs in the terminal to become more familiar with coding bigger projects in c. I am coding in VScode, to run on a Linux server (...
Librarian of Stars's user avatar
4 votes
2 answers
197 views

Consider this example, a script named test.ps1 function MyTestFunction { [CmdletBinding()] param () try { [bool]$functionBool= $null } catch {throw $_} Get-...
Paul π's user avatar
  • 585
2 votes
2 answers
112 views

I have a powershell command that I want to execute and direct the verbose output to a text file. Compress-Archive -Path $currentLogDir_TempPathString -DestinationPath $currentLogDir_ArchiveFileName -...
WKNav4997's user avatar
1 vote
1 answer
66 views

I need to take an integer input value, assign it to a variable, and then use that variable as a column name to get data from a pandas DataFrame. Data: 1 10 20 30 2 40 50 60 Steps: Assign input to ...
madhu chatim's user avatar
1 vote
0 answers
57 views

When I use (Morton.morton_statetest) in another script, It gives me 0, and even if I put a print in Morton script and If I put an print in the other script, it gives me two values different, wit out ...
Withoutsleep_dev's user avatar
-2 votes
1 answer
66 views

Is it possible to have the units argument for the timedelta function be defined by a variable? To elaborate, is this possible? Time_Unit = "days" Time_Increment = 1 Time2 = Time1 + ...
Jon S's user avatar
  • 63
3 votes
0 answers
155 views

I have been trying to build a shopping cart with PHP and MySQL as a learning experiment. I am stuck at passing the ordered items from catalogue to the shopping cart. After many experiments I figured ...
AzAzar's user avatar
  • 31
3 votes
1 answer
155 views

Let's say I have an array_1 containing a string which is a name of another array_2. And now I would like to convert the array index into a variable containing the array_2. I have the following working ...
Jimski's user avatar
  • 1,040
-2 votes
2 answers
81 views

I'm trying to understand how functions work, I defined my function with length and area parameters. Here is the problem: I want to write if area is less than a # then print a string of text. def ...
mt.297's user avatar
  • 9
0 votes
1 answer
80 views

How to define CH, if both basic and list variables are included in the model, there is an error as below: The entity (class com.app.planner.domain.Machine) has both basic and list variables and cannot ...
heyif's user avatar
  • 41
0 votes
1 answer
158 views

How can I make an array of variables generated using the values passed through a while loop ? I am using osclass for a uni project and I find no way whatsoever to make a list os usable variables from ...
Rob Wall's user avatar
1 vote
2 answers
125 views

I'm trying to read 2 lines into two bash variables but those lines contain spaces. Here is how those two lines are generated : $ url=https://www.youtube.com/watch?v=c5U4D-Hn5Vg $ yt-dlp --no-config --...
SebMa's user avatar
  • 4,995
1 vote
1 answer
96 views

I tried to figure out how to replace a string variable to '*' a="bamtools/*/*bam_metric.summary.tsv" ## not working echo ${a/*\*/} I would like to see bam_metric.summary.tsv after ...
Jack Z's user avatar
  • 33

15 30 50 per page
1
2 3 4 5
3593