|
5 | 5 | <link href="https://learnbyexample.github.io/atom.xml" rel="self" type="application/atom+xml"/>
|
6 | 6 | <link href="https://learnbyexample.github.io"/>
|
7 | 7 | <generator uri="https://www.getzola.org/">Zola</generator>
|
8 |
| - <updated>2024-04-22T00:00:00+00:00</updated> |
| 8 | + <updated>2024-04-30T00:00:00+00:00</updated> |
9 | 9 | <id>https://learnbyexample.github.io/atom.xml</id>
|
| 10 | + <entry xml:lang="en"> |
| 11 | + <title>Interactive GNU awk tutorial</title> |
| 12 | + <published>2024-04-30T00:00:00+00:00</published> |
| 13 | + <updated>2024-04-30T00:00:00+00:00</updated> |
| 14 | + <link rel="alternate" href="https://learnbyexample.github.io/interactive-awk-tutorial/" type="text/html"/> |
| 15 | + <id>https://learnbyexample.github.io/interactive-awk-tutorial/</id> |
| 16 | + <content type="html"><p>Know command line basics and want to learn the <code>GNU awk</code> command? Check out my interactive <a href="https://github.com/learnbyexample/TUI-apps/tree/main/AwkTutorial">TUI app</a> that gives a brief tour of this popular text processing command.</p> |
| 17 | +<p align="center"><img src="https://raw.githubusercontent.com/learnbyexample/TUI-apps/main/AwkTutorial/awk_tutorial.png" alt="Sample screenshot for interactive awk tutorial" loading="lazy" /></p> |
| 18 | +<span id="continue-reading"></span><br> |
| 19 | +<h2 id="installation">Installation<a class="zola-anchor" href="#installation" aria-label="Anchor link for: installation">π</a></h2> |
| 20 | +<p>This app is available on PyPI as <a href="https://pypi.org/project/awktutorial/">awktutorial</a>. Example installation instructions are shown below, adjust them based on your preferences and OS.</p> |
| 21 | +<pre data-lang="bash" style="background-color:#f5f5f5;color:#1f1f1f;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#7f8989;"># virtual environment |
| 22 | +</span><span style="color:#5597d6;">$</span><span> python3</span><span style="color:#5597d6;"> -m</span><span> venv textual_apps |
| 23 | +</span><span style="color:#5597d6;">$</span><span> cd textual_apps |
| 24 | +</span><span style="color:#5597d6;">$</span><span> source bin/activate |
| 25 | +</span><span style="color:#5597d6;">$</span><span> pip install awktutorial |
| 26 | +</span><span> |
| 27 | +</span><span style="color:#7f8989;"># launch the app |
| 28 | +</span><span style="color:#5597d6;">$</span><span> awktutorial |
| 29 | +</span></code></pre> |
| 30 | +<p>To run the app without having to enter the virtual environment again, add this alias to <code>.bashrc</code> (or equivalent):</p> |
| 31 | +<pre data-lang="bash" style="background-color:#f5f5f5;color:#1f1f1f;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#7f8989;"># you&#39;ll have to change the path |
| 32 | +</span><span style="color:#b39f04;">alias </span><span style="color:#c23f31;">awktutorial</span><span style="color:#72ab00;">=</span><span style="color:#d07711;">&#39;/path/to/textual_apps/bin/awktutorial&#39; |
| 33 | +</span></code></pre> |
| 34 | +<p>As an alternative to manually managing such virtual environments, you can use <a href="https://github.com/pypa/pipx">https://github.com/pypa/pipx</a> instead:</p> |
| 35 | +<pre data-lang="bash" style="background-color:#f5f5f5;color:#1f1f1f;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#5597d6;">$</span><span> pipx install awktutorial |
| 36 | +</span><span style="color:#5597d6;">$</span><span> awktutorial |
| 37 | +</span></code></pre> |
| 38 | +<p>As yet another alternative, you can install <code>textual</code> (see <a href="https://textual.textualize.io/getting_started/">Textual documentation</a> for more details), clone my <a href="https://github.com/learnbyexample/TUI-apps">TUI-apps repository</a> repository and run the <code>awk_tutorial.py</code> file.</p> |
| 39 | +<p>Adjust the terminal dimensions for the widgets to appear properly, for example 84x25 (characters x lines).</p> |
| 40 | +<br> |
| 41 | +<h2 id="ebook">Ebook<a class="zola-anchor" href="#ebook" aria-label="Anchor link for: ebook">π</a></h2> |
| 42 | +<p>See my <a href="https://github.com/learnbyexample/learn_gnuawk">CLI text processing with GNU awk</a> ebook to learn <code>GNU awk</code> with hundreds of examples and exercises.</p> |
| 43 | +<br> |
| 44 | +<h2 id="feedback">Feedback<a class="zola-anchor" href="#feedback" aria-label="Anchor link for: feedback">π</a></h2> |
| 45 | +<p>I'd highly appreciate your feedback. Please file <a href="https://github.com/learnbyexample/TUI-apps/issues">an issue</a> if there are bugs, crashes, etc.</p> |
| 46 | +<p>Hope you'll find this TUI app useful. Happy learning :)</p> |
| 47 | +</content> |
| 48 | + </entry> |
10 | 49 | <entry xml:lang="en">
|
11 | 50 | <title>CLI computation with GNU datamash</title>
|
12 | 51 | <published>2024-04-09T00:00:00+00:00</published>
|
|
0 commit comments