I am trying to write a script to check video file codec (using ffprobe), and encode them accordingly (with HandBrakeCLI).   Directory mp4 &gt;&gt; Sub-Directory &gt;&gt; mp4 &gt;&gt; &gt;&gt; Sub-sub Directory &gt;&gt; &gt;&gt; mp4   One of the problems in the script is that it can't do recursive sub directories. I tried to change the   for video_file in $(find . -type f -name '*.mp4')   the line above is probably wrong as I was testing afew of the codes by reading AskUbuntu and trying them out. Can't remember which got it to work, but in the end it was unable to deal with whitespaces in files/directories.  The script that works for current working directory, but not recursive directories:  #!/bin/bash for video_file in ./*.mp4; do ## using ffprobe to check video codec CHECK_FILE=`ffprobe -v error -select_streams v:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 "$video_file"` if [ $CHECK_FILE = hevc ] then     echo "$video_file is hevc/h265, skipping" else     # remove .mp4 extension     tempname="${video_file%.*}"_tmp.mp4     newname="${video_file%.*}"_hevc.mp4     HandBrakeCLI -i "$video_file" -o "$tempname"     mv -v "$tempname" "$newname"     echo "Moving on to next available file" fi done   Appreciate it if someone could show the way :)
How do I work recursively through a directory tree and execute a specific command on each file, and output the path, filename, extension, filesize and some other specific text to a single file in bash.
I want to prove this:  Prove that if $a \in \mathbb{Z}$ is divisible by $4$, then there exist $b$ and $c$ where $b,c \in \mathbb{Z}$ such that $a = b^2 - c^2$  I want to prove this directily:  $4\mid a $,  $a\in \mathbb{Z} \implies \exists b,c \in \mathbb{Z}, \quad$ s.t. $a=b^2-c^2$  Let $k\in \mathbb{Z}$. Then $4=a\cdot k$ and $k$ can divide $4$. Hence,  $\frac{4}{k} =b^2 - c^2 = (b-c)(b+c) \implies \dfrac{4}{k\cdot(b-c)} = b+c$  Is this proof correct? How can I use xindy on a system with libncurses.so.6? What do you call exaggerations like "I'm starving"? For example, when you are a little hungry and you say "I'm starving", or when you are so tired and you say "I'm dying". What do you call these type of expressions? Just exaggerations? I don't know how to explain this better. Why are low-rep users rate-limited when posting questions? I just encountered the following error:  Oops! Your question couldn't be submitted because: users with less than 125 reputation can only post questions every 20 minutes; try again later.  Why do you have this rule? Why 20 minutes? Can I choose to delay my turn in combat? In D&amp;D 4e there was an option to Delay your initiative:     Perform your actions as desired and adjust your initiative to your new   position in the order.   Does this rule to change initiative order still exist in 5th edition? I cannot find it in the PHB. What is a single word for a person who, as a habit, exaggerates a lot when relating information? Suppose a cleric casts Zone of Truth on a captured enemy. Unbeknownst to them, the enemy is a rakshasa. Zone of Truth says (PHB, p. 289):     You know whether each creature succeeds or fails on its saving throw.   But (MM, p. 257):     The rakshasa is immune to spells of 6th level or lower unless it wishes to be affected.   Assuming the rakshasa doesn't wish to be affected by the Zone of Truth spell, does the caster know this?  More generally, does a caster know when targets are unaffected by a spell they have cast, either because they have made saving throws, or because they are outright immune to the spell or its effects (e.g., casting Ray of Sickness on a shadow demon, which is immune to poison damage and the poisoned condition)? I can't really remember how long ago it was, but I think the book was marketed towards children/teens.  All I remember is the basic premise of the story.  Some story about these unusual little blue electric critters that only certain people could see, and these kids took it upon themselves to go about destroying them since they fed off energy or something like that.  Not sure whether they fed off people or off electricity... or both maybe?  I think the dominant method of destroying them was an electric baton that was taken from law enforcement.  I wanna call them buzz batons, but that's probably thanks to Artemis Fowl. A man condemned to serve his sentence in other times How to use Fermat's little theorem to find $50^{50}\pmod{13}$? Why can a 1 element set be a member of another set but not a subset of it? How do I delete one of two Ubuntus on my PC Disable automatic driver update for only one device in Windows 10 Is there a way we can disable automatic driver update for a specific device in Windows 10? The updated driver for that device (Intel Management Engine Interface 11.x in particular) causes problems on some laptops during. The version 9.x works perfect.  I don't want to disable automatic driver installation for all devices. My MacBook Pro has a flashing question mark in a folder against a grey background My MacBook Pro shows a grey screen with a flashing question mark in a folder. I tried connecting it to an older MacBook using firewire cable. I restarted the Macbook Pro in Target Mode. Now I see Thunderbolt and Firewire icons flashing and moving in a grey background. There is a green power icon at the bottom as well. I am not an expert even though I have been using Macs for ages.  How can I fix this issue so I can recover/backup things in the MacBook Pro hard drive? Does Lin's  assume that the 2 data sets have linear or monotonic tendencies? Or, can I measure the concordance between 2 data sets that have a sinusoidal tendency? NVMe PCIe x4 SSD on M.2 PCIe x2 slot? i'm about to get a new SSD for my PC, and before spending the money i have some doubts about my decision i would like to clarify First, my mobo is a B450 Aorus Pro Wifi, it has 2 M.2 slots, one of them full length (22110) compatible with PCIe 3.0 x4 and the other one standard length (2280) and support only for PCIe 3.0 x2 About the drive, i'm aiming for a 1tb XPG SX8200 Pro , which is a PCIe 3.0x4 SSD My first M.2 slot is already taken by the main SSD, which i use for the OS and other stuff, i can't really use it. Will a PCIe x4 SSD work on a PCIe x2 slot? How much performance will be lost if it does? Will it be worth it? TeXnicCenter & Adobe Acrobat 10 Comment deletion notification I think you should be notified if anything of yours is deleted or even flagged, preferably with some explanation (even if it's a simple categorisation like #rude, #irrelevant, #incorrect) and who did it.  Recently, a couple of comments of mine vanished without warning or evidence afterwards. I'm fine with deletion, but I think it should be used sparingly and be based on democratic decisions. What's the harm of letting a comment simply sit with no up-votes or responses rather than outright removal? Or allow downvoting and then negatively voted comments are hidden by default?  I get the impression that anything I post could be deleted. Very few people want to be unpopular or do the wrong thing. It takes time to understand what something is about and how best to use it (this site). Whether or not what I posted deserved to be deleted is irrelevant because I got no feedback. No-one can learn without feedback. The number of frivolous comments with many upvotes I've seen shows how inconsistently the rules are applied. A community that gives too much power to highly rated users won't grow but turn stagnant.  Sorry if this was rude, inappropriate or pathetic. I'm aware that similar discussions have occurred. In any case, I'll continue to use the site and move on... Knowing the interface of ubuntu and editing them Where are the files for the desktop or the interface that appears on the screen stored? And how can we edit them. How are they programmed?  What programming language is used to built the interfaces? Typesetting a full citation whose title ends with a word in braces I am using Biblatex and need to typeset full citations in my document text, so I'm using .  While it works correctly most of the time, it has trouble with Biber/BibTeX entries where the last word of a field is enclosed in braces (to force capitalization).  In these cases, \longfullcite may fail to properly capitalize the following word.  Take the following example:  \documentclass{article}  \usepackage{biblatex} \makeatletter \newcommand{\tempmaxup}[1]{\def\blx@maxcitenames{\blx@maxbibnames}#1} \makeatother \DeclareCiteCommand{\longfullcite}[\tempmaxup]   {\usebibmacro{prenote}}   {\usedriver      {\DeclareNameAlias{sortname}{default}}      {\thefield{entrytype}}}   {\multicitedelim}   {\usebibmacro{postnote}}  \usepackage{filecontents}  \begin{filecontents}{test.bib} @inproceedings{blow2015,   author       = {Blow, Joe},   title        = {{GNU} loves me},   year         = 2015,   booktitle    = {Proceedings of Some Conference}, }  @inproceedings{blow2016,   author       = {Blow, Joe},   title        = {I love {GNU}},   year         = 2016,   booktitle    = {Proceedings of Some Conference}, } \end{filecontents}  \addbibresource{test.bib}  \begin{document} \nocite{*} \noindent \longfullcite{blow2015}\\ \longfullcite{blow2016} \printbibliography \end{document}   Here is the output:    Note the inconsistent capitalization of the word "In" produced by the two \longfullcite commands.  By contrast, the citations emitted by \printbibliography correctly capitalize "In" for both entries.  What is causing this inconsistency and how can I fix or work around it (preferably by changing the definition of \longfullcite rather than changing the .bib file)?