<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Roflostroy</title>
    <description>The latest articles on DEV Community by Roflostroy (@roflostroy).</description>
    <link>https://dev.to/roflostroy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4279418%2F2b84d864-96e6-4db0-a894-12409818f96f.jpg</url>
      <title>DEV Community: Roflostroy</title>
      <link>https://dev.to/roflostroy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roflostroy"/>
    <language>en</language>
    <item>
      <title>Building SWISS: My first Open Source project in pure Bash</title>
      <dc:creator>Roflostroy</dc:creator>
      <pubDate>Thu, 03 Dec 2026 01:24:01 +0000</pubDate>
      <link>https://dev.to/roflostroy/building-swiss-my-first-open-source-project-in-pure-bash-4in1</link>
      <guid>https://dev.to/roflostroy/building-swiss-my-first-open-source-project-in-pure-bash-4in1</guid>
      <description>&lt;h1&gt;
  
  
  How I built a pure Bash multi-tool as a first-year CS student
&lt;/h1&gt;

&lt;p&gt;Hi everyone! &lt;/p&gt;

&lt;p&gt;I'm a first-year computer science student from Russia. I've been learning Linux and Bash scripting for a while, and I got really tired of constantly googling the syntax and flags for &lt;code&gt;find&lt;/code&gt; and &lt;code&gt;chmod&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;So I decided to build a tool to solve my own pain: &lt;strong&gt;SWISS&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is SWISS?
&lt;/h2&gt;

&lt;p&gt;SWISS is a terminal multi-tool. It has no external dependencies (just standard Linux utilities) and combines three things into one colorful TUI (Text User Interface) menu:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;File Search&lt;/strong&gt;: By name, extension, time, size, and permissions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hex Viewer&lt;/strong&gt;: View files in hex format (with basic encoding conversion via &lt;code&gt;iconv&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rights Manager&lt;/strong&gt;: An interactive &lt;code&gt;chmod&lt;/code&gt; guide and manager.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F02tflendkuaysaxfkjs5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F02tflendkuaysaxfkjs5.png" alt=" " width="379" height="341"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The challenges I faced
&lt;/h2&gt;

&lt;p&gt;Building a TUI in pure Bash is tricky. Here are a few things I struggled with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Handling binary files&lt;/strong&gt;: Bash's &lt;code&gt;read&lt;/code&gt; command can be a bit finicky with null bytes in binary files, so the hex viewer sometimes struggles with large non-text files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;time&lt;/code&gt; variable&lt;/strong&gt;: I ran into a funny bug where I used the same variable for choosing the search type (&lt;code&gt;day&lt;/code&gt; or &lt;code&gt;date&lt;/code&gt;) and the actual value. It worked, but it was a mess to debug.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Localization&lt;/strong&gt;: Right now, the interface is entirely in Russian. I'm planning to add English support in the next version.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Bash is powerful but has limits.&lt;/strong&gt; It's great for automation and simple menus, but for complex TUI, Python with &lt;code&gt;curses&lt;/code&gt; is probably the better choice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open source is awesome.&lt;/strong&gt; I submitted a Pull Request to add SWISS to the &lt;code&gt;awesome-bash&lt;/code&gt; list, and it taught me a lot about how the Open Source community works.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Building for yourself is the best motivation.&lt;/strong&gt; I use SWISS every day, and it actually makes my life easier.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  GitHub Link
&lt;/h2&gt;

&lt;p&gt;You can check out the code, download the release, or leave feedback here:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://github.com/Roflostroy/SWISS" rel="noopener noreferrer"&gt;SWISS on GitHub&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I would really appreciate any feedback, especially on how to make the code cleaner and more portable!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>opensource</category>
      <category>linux</category>
      <category>github</category>
    </item>
  </channel>
</rss>
