Pivoting data using `awk` involves rearranging data stored in an associative array (also known as a dictionary or hash table in other programming languages) to present it in a different format. The concept of "pivoting" is commonly used when dealing with tabular data where you want to transform rows into columns or vice versa.
Let's assume you have input data in a specific format and you want to pivot it. Here’s a simple example to illustrate


