Using find command in bash script

Welcome to bash. It’s an old, dark and mysterious thing, capable of great magic. 🙂 The option you’re asking about is for the find command though, not for bash. From your command line, you can man find to see the options. The one you’re looking for is -o for “or”: list=”$(find /home/user/Desktop -name ‘*.bmp’ -o … Read more

Find files on Windows modified after a given date using the command line

The forfiles command works without resorting to PowerShell. The article is here: Find files based on modified time Microsoft Technet documentation: forfiles For the example above: forfiles /P <dir> /S /D +12/07/2013 /P The starting path to search /S Recurse into sub-directories /D Date to search, the “+” means “greater than” or “since”

How do I disable Firefox’s “Search for text when I start typing” on pages with keyboard shortcuts?

To disable this in firefox, just go to “Options->General Tab->Browsing and disable “Search for text when I start typing”. More info here . This is very useful in some cases, for example when you try to play WebGL games or when using pages like Gmail or Protonmail that have their own kb shortcuts. UPDATED to … Read more

Why does string::find return size_type and not an iterator?

The design of the standard library’s shiny new string class was already done when Stroustrup introduced the standard committee to the STL. The committee liked the STL and started incorporating it into the standard, thereby adapting much of what they had already agreed on (and probably also delaying the standard for another year or two). … Read more