Languages | 🇩🇪🇬🇧🇫🇷🇨🇳🇷🇺 |
Location | Rural Shanghai 🚜🌾🏙️ |
Interested in | Computing💻, AI🤖, history🏺, languages💬 |
Occupation | problem solver |
Languages | 🇩🇪🇬🇧🇫🇷🇨🇳🇷🇺 |
Location | Rural Shanghai 🚜🌾🏙️ |
Interested in | Computing💻, AI🤖, history🏺, languages💬 |
Occupation | problem solver |
gcc -🧱 main.cpp
#TIL you can pass variables to an #awk script with the option -v. This is useful, for example, when you want to include the file name in the output:
```
find . -type f -iname '*.csv' -exec awk -F, -v filename={} '{print filename, $2}' {} \;
```
Even though seemingly awkward at first glance, #awk is definitely one of the most versatile and useful tools on #linux.