Tag: awk
How many hours/minutes or blocks are there since last time you generate a block as a witness? Today we are going to find out the answer using the LINUX …
Given a text file file.txt, transpose its content. You may assume that each row has the same number of columns and each field is separated by the ‘ ‘ …
How would you print just the 10th line of a file? For example, assume that file.txt has the following content: Line 1 Line 2 Line 3 Line 4 Line …
There are many ways to show line numbers when displaying text files. For example, in this article, we know the utility nl can be used to show line numbers …