Category: awk
AWK is a powerful text-processing programming language. Given a multi-million lines of text file containing the following data – we want to know the frequencies the delegation at each …
This is the longest Linux shell command I’ve written! Last time, we presented the bash/awk command line prints the block number and the number of hours since last time …
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 …