[AWK] Explaining NR==FNR
Introduction Sometimes you might see the phrase NR==FNR in an awk command. Actually this is a common idiom we used in awk. NR and FNR are two built-in variables in …
Journey of a noob
Introduction Sometimes you might see the phrase NR==FNR in an awk command. Actually this is a common idiom we used in awk. NR and FNR are two built-in variables in …
comm is a useful command for us to compare two sorted files line by line. It can be used in multiple scenarios. Before getting into the use cases, let’s understand …
Sometimes, we need to make a file not to contain the lines from another file. It is common when we need to remove some configurations from config files. It is …
Introduction In this article, we will demonstrate why the error AttributeError: module ‘json’ has no attribute ‘loads’ in Python occurs and how to solve it. Let’s try to reproduce the …
Introduction We are human. We all make mistakes. Have you ever messed up with your dot files? I did. Luckily, I always have them backed up so that I can …
Introduction In this article, we will demonstrate the commands find -ok and find -okdir. These commands do the same as find -exec and find -execdir, but they will ask you …
find -exec is a commonly used command. However, some people might not be awared of the command find -execdir and their differences. In this article, we will explain the 2 …
Sometimes we may need to hide the user input so that they won’t be shown in the terminal. This is especially useful when our script requires a password from users. …