<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/fr/blog/rss.xsl"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Christophe Avonture &#x2014; Writing better Bash scripts</title>
        <link>https://www.avonture.be/fr/series/writing-better-bash-scripts</link>
        <description>Every post in the &#x201c;Writing better Bash scripts&#x201d; series on Christophe Avonture</description>
        <lastBuildDate>Thu, 10 Jul 2025 00:00:00 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>fr</language>
        <item>
            <title><![CDATA[Linux - Bash scripts - Running unit tests with bats/bats]]></title>
            <link>https://www.avonture.be/fr/fr/blog/bats-unit-tests</link>
            <guid isPermaLink="false">/fr/blog/bats-unit-tests</guid>
            <pubDate>Thu, 10 Jul 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[<img src="https://www.avonture.be/fr/img/v2/bash.webp" alt="Linux - Bash scripts - Running unit tests with bats/bats" style="display:block;max-width:100%;height:auto;">Learn how to effectively unit test your Bash scripts on Linux using the powerful bats (Bash Automated Testing System) framework. See practical examples for assertions, output checks, and failures.]]></description>
            <author>Christophe</author>
            <category>bash</category>
            <category>linux</category>
            <category>tests</category>
            <enclosure length="0" type="image/webp" url="https://www.avonture.be/fr/img/v2/bash.webp"/>
        <dc:creator><![CDATA[Christophe]]></dc:creator></item>
        <item>
            <title><![CDATA[Linux - Using a progression bar in your script]]></title>
            <link>https://www.avonture.be/fr/fr/blog/bash-progression-bar</link>
            <guid isPermaLink="false">/fr/blog/bash-progression-bar</guid>
            <pubDate>Mon, 07 Oct 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[<img src="https://www.avonture.be/fr/img/v2/linux_progress_bar.webp" alt="Linux - Using a progression bar in your script" style="display:block;max-width:100%;height:auto;">Add a visual progression bar to your Bash scripts on Linux. This guide shows you how to easily implement a progress bar to track concurrent jobs, visualize progress, and improve your terminal user interface.]]></description>
            <author>Christophe</author>
            <category>bash</category>
            <category>linux</category>
            <enclosure length="0" type="image/webp" url="https://www.avonture.be/fr/img/v2/linux_progress_bar.webp"/>
        <dc:creator><![CDATA[Christophe]]></dc:creator></item>
        <item>
            <title><![CDATA[Linux - Take advantage of the number of CPUs you have; start concurrent jobs]]></title>
            <link>https://www.avonture.be/fr/fr/blog/bash-parallel-task</link>
            <guid isPermaLink="false">/fr/blog/bash-parallel-task</guid>
            <pubDate>Sun, 06 Oct 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[<img src="https://www.avonture.be/fr/img/v2/linux_parallel.webp" alt="Linux - Take advantage of the number of CPUs you have; start concurrent jobs" style="display:block;max-width:100%;height:auto;">Optimize your Bash scripts! Learn how to run concurrent jobs and leverage all your CPU cores using process IDs (pids), wait, and nproc to dramatically reduce execution time.]]></description>
            <author>Christophe</author>
            <category>bash</category>
            <category>linux</category>
            <enclosure length="0" type="image/webp" url="https://www.avonture.be/fr/img/v2/linux_parallel.webp"/>
        <dc:creator><![CDATA[Christophe]]></dc:creator></item>
        <item>
            <title><![CDATA[Linux - Generate documentation from Bash scripts]]></title>
            <link>https://www.avonture.be/fr/fr/blog/linux-generate-documentation-from-bash-scripts</link>
            <guid isPermaLink="false">/fr/blog/linux-generate-documentation-from-bash-scripts</guid>
            <pubDate>Mon, 29 Jul 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[<img src="https://www.avonture.be/fr/img/v2/bash.webp" alt="Linux - Generate documentation from Bash scripts" style="display:block;max-width:100%;height:auto;">Learn to auto-generate documentation for your Bash scripts on Linux. This guide provides a custom script to parse function doc blocks and create structured Markdown files automatically.]]></description>
            <author>Christophe</author>
            <category>bash</category>
            <category>linux</category>
            <enclosure length="0" type="image/webp" url="https://www.avonture.be/fr/img/v2/bash.webp"/>
        <dc:creator><![CDATA[Christophe]]></dc:creator></item>
        <item>
            <title><![CDATA[Linux - Sort functions in a Bash script]]></title>
            <link>https://www.avonture.be/fr/fr/blog/linux-sort-functions-in-script</link>
            <guid isPermaLink="false">/fr/blog/linux-sort-functions-in-script</guid>
            <pubDate>Sun, 28 Jul 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[<img src="https://www.avonture.be/fr/img/v2/bash.webp" alt="Linux - Sort functions in a Bash script" style="display:block;max-width:100%;height:auto;">Learn how to use diff and sort in Bash to check if functions in your shell scripts are defined in alphabetical order. Includes a script to scan an entire directory.]]></description>
            <author>Christophe</author>
            <category>bash</category>
            <category>linux</category>
            <enclosure length="0" type="image/webp" url="https://www.avonture.be/fr/img/v2/bash.webp"/>
        <dc:creator><![CDATA[Christophe]]></dc:creator></item>
        <item>
            <title><![CDATA[Linux - Compare two versions of the same script]]></title>
            <link>https://www.avonture.be/fr/fr/blog/linux-compare-two-versions-of-the-same-script</link>
            <guid isPermaLink="false">/fr/blog/linux-compare-two-versions-of-the-same-script</guid>
            <pubDate>Sun, 28 Jul 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[<img src="https://www.avonture.be/fr/img/v2/bash.webp" alt="Linux - Compare two versions of the same script" style="display:block;max-width:100%;height:auto;">Use a simple Linux command-line trick with diff, grep, and awk to compare two versions of the same Bash script. Quickly identify missing or new functions across file versions or entire folders.]]></description>
            <author>Christophe</author>
            <category>bash</category>
            <category>linux</category>
            <enclosure length="0" type="image/webp" url="https://www.avonture.be/fr/img/v2/bash.webp"/>
        <dc:creator><![CDATA[Christophe]]></dc:creator></item>
        <item>
            <title><![CDATA[Bash - Echo on the console and in a logfile in the same time]]></title>
            <link>https://www.avonture.be/fr/fr/blog/bash-console-log-together</link>
            <guid isPermaLink="false">/fr/blog/bash-console-log-together</guid>
            <pubDate>Fri, 03 May 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[<img src="https://www.avonture.be/fr/img/v2/bash.webp" alt="Bash - Echo on the console and in a logfile in the same time" style="display:block;max-width:100%;height:auto;">Tired of silent Bash scripts? Learn the simple, effective method to simultaneously echo command output to the console and write it to a log file line-by-line.]]></description>
            <author>Christophe</author>
            <category>bash</category>
            <category>linux</category>
            <enclosure length="0" type="image/webp" url="https://www.avonture.be/fr/img/v2/bash.webp"/>
        <dc:creator><![CDATA[Christophe]]></dc:creator></item>
        <item>
            <title><![CDATA[Bash - Script to add logging features to your script]]></title>
            <link>https://www.avonture.be/fr/fr/blog/bash-logging</link>
            <guid isPermaLink="false">/fr/blog/bash-logging</guid>
            <pubDate>Wed, 01 May 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[<img src="https://www.avonture.be/fr/img/v2/bash.webp" alt="Bash - Script to add logging features to your script" style="display:block;max-width:100%;height:auto;">Add robust logging features to your Bash scripts with this simple, reusable library. Get automatic log files, timestamps, and full function call traces for easy debugging.]]></description>
            <author>Christophe</author>
            <category>bash</category>
            <category>linux</category>
            <enclosure length="0" type="image/webp" url="https://www.avonture.be/fr/img/v2/bash.webp"/>
        <dc:creator><![CDATA[Christophe]]></dc:creator></item>
        <item>
            <title><![CDATA[Bash - Loading environment variables from a file]]></title>
            <link>https://www.avonture.be/fr/fr/blog/bash-load-env</link>
            <guid isPermaLink="false">/fr/blog/bash-load-env</guid>
            <pubDate>Tue, 19 Dec 2023 00:00:00 GMT</pubDate>
            <description><![CDATA[<img src="https://www.avonture.be/fr/img/v2/bash.webp" alt="Bash - Loading environment variables from a file" style="display:block;max-width:100%;height:auto;">Learn how to load environment variables from a .env file into a Bash script, so you can externalize configuration and reuse variables across other applications like Laravel.]]></description>
            <author>Christophe</author>
            <category>bash</category>
            <category>linux</category>
            <enclosure length="0" type="image/webp" url="https://www.avonture.be/fr/img/v2/bash.webp"/>
        <dc:creator><![CDATA[Christophe]]></dc:creator></item>
        <item>
            <title><![CDATA[Bash - ASCII art]]></title>
            <link>https://www.avonture.be/fr/fr/blog/bash-ascii-art</link>
            <guid isPermaLink="false">/fr/blog/bash-ascii-art</guid>
            <pubDate>Tue, 19 Dec 2023 00:00:00 GMT</pubDate>
            <description><![CDATA[<img src="https://www.avonture.be/fr/img/v2/ascii_art.webp" alt="Bash - ASCII art" style="display:block;max-width:100%;height:auto;">Learn how to add eye-catching ASCII art banners to your Bash scripts for a bigger visual impact. Includes a full sample code implementation.]]></description>
            <author>Christophe</author>
            <category>bash</category>
            <category>linux</category>
            <enclosure length="0" type="image/webp" url="https://www.avonture.be/fr/img/v2/ascii_art.webp"/>
        <dc:creator><![CDATA[Christophe]]></dc:creator></item>
    </channel>
</rss>