Questions tagged [positional-parameter]

7 questions
11
votes
1 answer

What is the second sh in `sh -c 'some shell code' sh`?

Question I encountered the following snippet: sh -c 'some shell code' sh … (where … denotes zero or more additional arguments). I know the first sh is the command. I know sh -c is supposed to execute the provided shell code (i.e. some shell code).…
Kamil Maciorowski
  • 69,815
  • 22
  • 136
  • 202
3
votes
1 answer

FFMPEG Image Zoom to a Position X Y

I need to zoom to a special point of an image. What do i have to change in this existing Script for example Y:81% X:27%? ffmpeg -r 25 -i image.jpg -vf "zoompan=z='zoom+0.001':x='if(gte(zoom,1.5),x,x+1)':y='y':d=125\" -y -shortest -c:v libx264…
S. Kr.
  • 143
  • 1
  • 6
2
votes
1 answer

How to use the $_ positional parameter in the fish shell?

In Bash, the positional parameter $_ holds the last argument in the previous command: $ /home/joe> some-script foo bar $ /home/joe> cd $_ $ /home/joe/bar> The positional parameter $_ does not seem to work in the fish shell. Is there some way in…
Ashwin Nanjappa
  • 9,947
  • 26
  • 79
  • 110
2
votes
1 answer

Add soft subtitles with formatting and position

I’ve been using ffmpeg to do everything so far with a video, stringing animation frames together, adding audio, overlaying images, and adding subtitles. So I expect that the answer to my question still lies within ffmpeg, but I’m open to using other…
1
vote
3 answers

Enhance display of positional encoding for debug purposes, perhaps using Excel one-character-per-cell

I have the following problem to solve: I work with positional-encoded files. These files show characters at certain positions in the string. Each row is a record, and the meaning of a character in a row depends on its position. In order to debug and…
0
votes
0 answers

How to start Windows 10 Explorer at a specific screen location with a specific window size?

In Linux, I can do something like gnome-terminal --geometry=100x35+10+10 (gnome-terminal --geometry=widthxheight+Xposition+Yposition) This is possible with many different linux applications. Is there a similar way in Windows 10 to open and…
I grok it
  • 51
  • 1
  • 7
-1
votes
2 answers

how to start a program with command line arguments on windows cmd

i know there are a couple of questions similar to this one out there but and while i have browsed through them, none have been able to resolve my problem. My code takes in three strings as parameters on cmd volume.exe NameOfInputFile.txt string1…
abhinonymous
  • 101
  • 2