How do I grep recursively?

The first parameter represents the regular expression to search for, while the second one represents the directory that should be searched. In this case, . means the current directory. Note: This works for GNU grep, and on some platforms like Solaris you must specifically use GNU grep as opposed to legacy implementation. For Solaris this … Read more

How to run a PowerShell script

Launch Windows PowerShell, and wait a moment for the PS command prompt to appear Navigate to the directory where the script lives PS> cd C:\my_path\yada_yada\ (enter) Execute the script: PS> .\run_import_script.ps1 (enter) What am I missing?? Or: you can run the PowerShell script from cmd.exe like this: according to this blog post here Or you … Read more

What are good grep tools for Windows? [closed]

Based on recommendations in the comments, I’ve started using grepWin and it’s fantastic and free. (I’m still a fan of PowerGREP, but I don’t use it anymore.) I know you already mentioned it, but PowerGREP is awesome. Some of my favorite features are: Right-click on a folder to run PowerGREP on it Use regular expressions … Read more

What does “@” mean in Windows batch scripts

It means not to output the respective command. Compare the following two batch files: and The former has only foo as output while the latter prints (here, at least). As can be seen the command that is run is visible, too. echo off will turn this off for the complete batch file. However, the echo … Read more

What’s a .sh file?

If you open your second link in a browser you’ll see the source code: […] So it’s a bash script. Got Linux? In any case, the script is nothing but a series of HTTP retrievals. Both wget and curl are available for most operating systems and almost all language have HTTP libraries so it’s fairly … Read more

A fatal error occurred while creating a TLS client credential. The internal error state is 10013

Basically we had to enable TLS 1.2 for .NET 4.x. Making this registry changed worked for me, and stopped the event log filling up with the Schannel error. More information on the answer can be found here Linked Info Summary Enable TLS 1.2 at the system (SCHANNEL) level: (equivalent keys are probably also available for … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)