How do I loop over files in Bash and create matching output filenames?
Hi! This is my first time using Bash, and I'm trying to run a Python script on every file in /data/folder. I want each result to be written…
Hi! This is my first time using Bash, and I'm trying to run a Python script on every file in /data/folder. I want each result to be written…
I need to extract the application version from pyproject.toml using this awk command: awk -F'"' '/^version[[:space:]]*=/ {print $2; exit}' pyproject.toml. What is the correct way to assign that…
Hi! I'm new to Bash and I'm trying to loop through every file in /data/folder, pass each one to munge_sumstats.py, and write the processed result to another folder.…
I'm new to Linux and Bash and wrote this script to build and publish my Bevy game to GitHub Pages. It detects Ubuntu, Arch, or CachyOS, updates the…
I wrote a Bash script to create a full snapshot of several source directories under a timestamped destination. For now, the source and backup paths can be hard-coded.…
I'm writing a Bash script to create a full snapshot of several source directories in a timestamped backup directory. For now, I'm fine with hard-coded paths. The script…
I'm new to Linux and Bash, and I wrote this script for a CI workflow that publishes my Bevy game as a WebAssembly build. It detects Arch-based systems…
I'm writing a Bash function called run_aws_ssm_get_parameter. Its current interface is positional: run_aws_ssm_get_parameter "false" "" "some_param". The first value controls debug logging, the second optionally identifies an AWS…
I'm designing a Bash function called run_aws_ssm_get_parameter. Its current interface is positional: run_aws_ssm_get_parameter "false" "" "some_param". The first argument controls debug logging, the second is an optional AWS…
I have several Bash functions that install Docker, Docker Compose, Git, and jq. Each function repeats argument-count checks, empty-value validation, boolean validation, debug logging, and error handling. The…
I have several Bash functions that install tools such as Docker, Docker Compose, Git, and jq. Each function repeats argument-count checks, empty-value validation, boolean validation for a debug…
Is it possible to generate a random password from Bash? I'm looking for a simple command or script where I can choose the password length, ideally using a…
I'm writing Bash functions to check whether a Docker network exists and create it only when necessary. In a language with Boolean return values, I would return true…
I know the basic commands for printing text, finding files, and working with simple syntax, and my previous experience with GDScript has helped me pick things up faster.…
I know the basics of the terminal—printing text, finding files, using simple syntax, and running a few commands—but I'm still learning something new every day. My previous experience…
I'm writing Bash functions to check whether a Docker network exists and create it only when it doesn't. In a language with Boolean return values, I'd expect an…
I started using Linux about two years ago, but only began seriously learning Bash recently. After practicing basic conditionals, I built my first larger script, a project called…
I started using Linux about two years ago, but only began seriously learning Bash a week or two ago. I recently wrote my first conditional statement and decided…
I'm trying to write a safer alternative to rm that moves files into $HOME/temp/trash instead of deleting them immediately. It also has options to list the trash contents…
I wrote a Bash function called del that moves files and directories into $HOME/temp/trash instead of deleting them immediately. It also has -show and -clear options, with -clear…