LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Extract JPGs from Nested Directory of MP4s, Leaving Each JPG in its Source MP4 Directory (https://www.linuxquestions.org/questions/linux-newbie-8/extract-jpgs-from-nested-directory-of-mp4s-leaving-each-jpg-in-its-source-mp4-directory-4175631578/)

ericlindellnyc 06-21-2018 05:41 PM

Quote:

Originally Posted by ondoho (Post 5869532)
what instructions?
i never said that.
you really have to start troubleshooting your own scripts instead of asking question after question ("what will happen if i do this?").
a good trick is to prepend the crucial command (ffmpeg...) with 'echo' - that way you can see how strings are xpanded, but nothing really happens.
if that doesn't help, add 'set -x' to the top of your script, just below #!/bin/bash.

ericlindellnyc, i wanted to pm you but it seems you have that feature disabled.
just wanted to say that one or more contributors to this thread might be on my ignore list.
this might lead to situations where i state something that has already been stated.
i mention this just in case you're confused.

I didn't even know re the pm feature. Now I do.

There's only one other person consistently in this thread,
whom you have acknowledged (I think) and verse visa.

ericlindellnyc 06-21-2018 05:46 PM

Quote:

Originally Posted by BW-userx (Post 5869604)
This maybe overloading your brain, just strip off what you do not need, by commenting it out first to make sure you do not need it, before removing it, and make changes to the code you do need in order to conform to your needs.

echo is a useful tool when dealing with bash scripting, or set -x

and yes of course parts of this can be written differently to get the same end results. That's a beauty of programming.

My brain was overloaded half way down the first page of this thread.
But that's a good thing.

I had forgotten how to use echo; it's extremely useful.
I will make frequent use of it as I proceed.

Many thanks.


All times are GMT -5. The time now is 04:08 PM.