This will be the last article I do on bash scripting for now. I want to shift gears for a few and explore some other languages. This project is called 'rmspaces'. It's another simple little program created with bash and Bashly for removing the spaces in filenames. It's super simple and does something super simple but useful. Yet, as simple as it may have seemed, I actually had a little trouble building this one that I will get into soon. Just as with the last two articles, I used Bashly to generate the finished script. The following bit I was able to re-use from the previous script. It checks for input being piped or redirected to stdin and if that is empty then it will parse the command line and separate multiple files passed as a comma separated list or a single item and assigns it to an array: The meat of the work is the part after that where the script splits the filename from its extension then after changing that string puts it back together with the modified ...
NeighborhoodNerd21 is your friendly neighborhood slow rolling no AI content tech blog.