Home New Trending Search
About Privacy Terms
#
#shellScripting
Posts tagged #shellScripting on Bluesky
Preview
Bash Expansion: The Complete Beginner's Guide (2026) - OSTechNix Learn all Bash expansion types with practical examples and clear explanations of execution order, globbing, word splitting, and quoting rules.

Bash expansion explained for beginners. Learn brace, tilde, parameter, command, arithmetic, process, globbing, word splitting, and quote removal with practical examples.

Full guide here: ostechnix.com/bash-expansi...

#BashExpansion #Bash #ShellScripting #Linux #Linuxhowto

1 0 0 0
#!/bin/bash

files=$(ls bc*.ppm)
numfiles=$(ls $files | wc -l)
numpages=$((numfiles*2))
frontat=1
backat=$numpages

for file in $files; do
    filewidth=$(pamfile -size $file | awk '{print $1}')
    pagewidth=$((filewidth/2))
    pamcut -right $pagewidth $file >| left.ppm
    pamcut -left $((pagewidth+1)) $file >| right.ppm
    if ((frontat % 2 == 0)); then
        mv left.ppm split$(printf %02d $frontat).ppm
        mv right.ppm split$(printf %02d $backat).ppm
    else
        mv right.ppm split$(printf %02d $frontat).ppm
        mv left.ppm split$(printf %02d $backat).ppm
    fi
    ((++frontat))
    ((--backat))
done

#!/bin/bash files=$(ls bc*.ppm) numfiles=$(ls $files | wc -l) numpages=$((numfiles*2)) frontat=1 backat=$numpages for file in $files; do filewidth=$(pamfile -size $file | awk '{print $1}') pagewidth=$((filewidth/2)) pamcut -right $pagewidth $file >| left.ppm pamcut -left $((pagewidth+1)) $file >| right.ppm if ((frontat % 2 == 0)); then mv left.ppm split$(printf %02d $frontat).ppm mv right.ppm split$(printf %02d $backat).ppm else mv right.ppm split$(printf %02d $frontat).ppm mv left.ppm split$(printf %02d $backat).ppm fi ((++frontat)) ((--backat)) done

Here's a little puzzle for you. Can you figure out the purpose of this one-off shell script I just wrote?
If you post an answer put it behind a CW so you don't spoil it for others!
#programming #scripting #shellScript #shellScripting #Linux

1 0 0 0
Post image

If you’re writing shell scripts, start adding this:

set -euo pipefail

It forces your script to:
• Exit on errors
• Fail on unset variables
• Catch broken pipes

Small line. Big reliability boost.

#TechTipThursday #Linux #ShellScripting #SysAdmin

0 2 0 0
Post image

Level up your shell scripting skills

awk helps you extract columns, apply conditions, and generate reports

Simple syntax. Serious power.

#LearnLinux #ShellScripting #SysAdminLife #DevJourney

0 0 0 0
Preview
38 Bash Tips: Essential Shell Features and Shortcuts (38th Birthday Edition) - OSTechNix Bash turns 38! Learn 38 built-in shell features and tips: keyboard shortcuts, history tricks, parameter expansion, conditionals & arrays.

Bash turns 38 today! Celebrate Bash's 38th birthday with 38 built-in features and essential tips. Learn keyboard shortcuts, parameter expansion, conditionals & more.

Full guide here: ostechnix.com/38-bash-tips...

#Bash #Shell #Bash38 #Linux #Bashtips #Shelltips #Shellscripting

1 0 0 0
Post image

Looks like black magic at first glance… but it actually works!

This script is a hands-on mini-lesson in associative arrays (maps) and other cool zsh-tricks. Think of it as a tiny config manager for your zsh setup on Linux.
Still, zsh syntax is blowing my mind.
#ShellScripting #Linux #Zsh #DevMagic

1 0 0 0
Post image

I used my free time to learn some #shellScripting in #linux.
It's fun, but the #zsh syntax is wild! 💻

My terminal now judges me for every typo. x)

#Coding #CodeNewbie

1 0 0 0
Original post on mastodon.gamedev.place

I use git in a shell because that's just what I prefer, and I have a lot of aliases set up to shorten commands, e.g. just "g" will be git commit, "gp" is git push etc.
I just realized that this also gives me some safety. I use PageUp to complete the currently typed thing to the last command I […]

0 0 1 0

Also developed scripting fluency — automating repetitive tasks and managing configurations with precision. 🧠

It’s one thing to know Linux; it’s another to make it work for you.
#Automation #ShellScripting

0 0 0 0
Original post on chaos.social

#PSA regarding #GNU #coreutils #sort's unexpected or at least non-intuïtive behaviour of its --unique (-u) option together with --numeric (-n) or --humane (-h).

The output of piping something through

sort -nu

might not be equal to the output of piping the same thing through

sort -n | uniq […]

0 0 0 0
Preview
Fish Shell 4.1.0 più coerenza, nuove funzioni e miglioramenti alla sintassi Fish Shell 4.1.0 introduce nuove funzioni built-in, miglioramenti alla sintassi e maggiore coerenza nell’esperienza utente.

Fish Shell 4.1.0 è qui! Nuove funzioni, sintassi migliorata e un terminale ancora più intuitivo per Linux. #FishShell #LinuxTerminal #ShellScripting #OpenSource #CLI

2 1 0 0

Many users enhance Zoxide with custom shell aliases or functions, e.g., `z foo` for `cd $(zoxide query foo)`. Integrating it into your dotfiles workflow maximizes its utility and personalizes your shell experience. #ShellScripting 4/6

0 0 1 0

Quick #Bash alias for the day.
alias wrap='fold -sw 80'

#shellScripting

0 0 0 0
Post image

Bash isn't just a shell — it's a superpower 🧠💻
🔁 Loops
🗂️ File automation
📜 Scripts that replace 100s of clicks
Mastering Bash means controlling your system like a pro. #Bash #Linux #ShellScripting

0 0 0 0
Table 1: 
Remove shortest length string starting from left, use #. From right? Use %.
To remove longest length string starting from left, use ##, with %% for from the right.

Table 2: The various combinations of expansions and wildcard/period placement for extracting file stem and suffix. Most do not work. To extract file name/stem from shell expansion, use %.* and to extract the suffix, use ##*.

Table 1: Remove shortest length string starting from left, use #. From right? Use %. To remove longest length string starting from left, use ##, with %% for from the right. Table 2: The various combinations of expansions and wildcard/period placement for extracting file stem and suffix. Most do not work. To extract file name/stem from shell expansion, use %.* and to extract the suffix, use ##*.

Tired of fumbling through which is which, I made these tables to understand expansion (for my primary use case) better. Hopefully I’ll remember I left this here. #shell #scripting #shellscripting #bash #expansion

0 0 0 0
Original post on federate.social

Here's a #ShellScripting puzzle. Suppose you have a shell script run with the "-e" flag, i.e., it's supposed to exit immediately if a command exits with a non-zero exit status. But there's one particular command you want to capture the exit status of so you can check if it's a particular failure […]

0 0 2 0

HN discussed tab completion across Bash, Zsh, and Fish shells. The conversation covered ease of use, configuration, and shortcomings, debating the trade-offs between convenience & control, and the potential for standardization. #ShellScripting 1/5

0 0 1 0
Preview
Automating Folder Structure for New Projects with Shell Scripting Embedded in Keyboard Maestro - Podfeet Podcasts At Macstock this year, we had a brand-new attendee who was also a first-time speaker at the conference. His name is Mike Burke, and as I explained in my Macstock coverage, he took a very big swing in ...

I automated building new project folders with shell scripting + Keyboard Maestro. Had more fun doing that than starting my ScreenCastsONLINE project. Thanks, Mike Burke & don't tell @leegarrett.bsky.social

www.podfeet.com/blog/2025/08...

#Automation #ShellScripting #KeyboardMaestro

1 1 1 0
This photo depicts parts of a script code and a GUI to perform API requests on a HortusFox workspace instance.

This photo depicts parts of a script code and a GUI to perform API requests on a HortusFox workspace instance.

I created an AquaShell script to quickly and easily run API requests on a HortusFox workspace instance. 😀

Here is the script:
www.aquashell-scripting.com/examples#hor...

#coding #programming #scripting #shellscripting #automation #programminglanguage #indiedev

4 1 0 0
A script that resets docker WSL data, can be found here: https://www.aquashell-scripting.com/examples#reset-docker-wsl-data

A script that resets docker WSL data, can be found here: https://www.aquashell-scripting.com/examples#reset-docker-wsl-data

Sometimes small scripts are quite helpful.

For instance if your docker wsl data grows more and more, so you just want to reset it to gain disk space.

www.aquashell-scripting.com/examples#res...

#docker #wsl #scripting #shellscripting #programming #coding #programminglanguage

1 0 0 0

Give your shell scripts a refresh with Modernish! Simplify complex tasks & make them more maintainable. Learn more: https://github.com/modernish/modernish #shellscripting #devops"

0 0 0 0
Preview
How to Use Terminals, Shells, and Shell Scripting in Linux In this chapter, you’ll learn how Linux terminals and shells work, and how to write your first shell scripts using bash.

In Chapter #10 of the LFCS certification, understand the difference between terminals and shells, and start writing your own shell scripts.

📖 Read the full guide (Pro members only):

👉 pro.tecmint.com/understandin...

Follow @tecmint.bsky.social for more #Linux tips and #ShellScripting guides!

0 1 0 0
Post image Post image

Check out my @itch.io article on how I made a #videogame in my own #programminglanguage

itch.io/t/5056205/ev...

#gamedev #indiedev #screenshotsaturday #gamedevelopment #scriptinglanguage #scripting #shellscripting #proofofconcept #aquashell

12 2 0 0

Optimize your shell scripts with Koala: a benchmark suite that turns research into science. No more guesswork, just measurable results. Check it out: https://github.com/kbensh/koala" #shellscripting #optimization

0 0 0 0
Post image

💻 ¿Trabajas con 𝗟𝗶𝗻𝘂𝘅 y no dominas 𝗕𝗮𝘀𝗵?

En este post te contamos:
📌 Qué es Bash
📌 Comandos esenciales
📌 Cómo crear tus primeros scripts

Ideal para quienes están dando sus primeros🔗 Lee más: https://f.mtr.cool/tbwyqpquni

#Bash #Linux #Automatización #ShellScripting #DevOps

1 0 0 0
Preview
"How to Automate Spring Boot Deployment with Shell Script & Vagrant (Step-by-Step for Beginners)" 🎯 Level: Beginner-friendly 📂 Project Repo: https://github.com/SAFI-ULLAHSAFEER/Shell-Script ## 🛠️ Why Shell Script Automation? Automating application deployments saves time and reduces human errors. In this blog, I’ll walk you through deploying a Spring Boot WAR app inside a Vagrant-managed Ubuntu machine using a Shell Script. All actions are visualized step-by-step with real screenshots. Perfect for beginners in DevOps, scripting, or system setup! ## 📦 Prerequisites Installed: Git, Vagrant, VirtualBox Basic knowledge of Linux terminal A Spring Boot WAR file (included in the GitHub repo) ## 📁 Step 1: Clone the Project Open the VS code Type the following command git clone https://github.com/SAFI-ULLAHSAFEER/Shell-Script ## 📂 Step 4: Navigate to Your Spring Boot App Directory Start the Vagrant Box 🛠️ This command will automatically create and configure a virtual Linux machine for you, .This command logs you into the virtual Ubuntu machine where everything will run. As you can see the black console screen only we called it as a multi-user.target in linux. Now Next Step is SSH Into the Machine After that Navigate to Your Spring Boot App Directory By default, Vagrant shares your local directory under /vagrant. After that next step is Create setup.sh Script Now the next step is to Make the Script Executable and Run chmod +x setup.sh sudo ./setup.sh This will: **Update packages** **Install Java and Tomcat** **Deploy your WAR file** **Restart Tomcat** Now the NeXT Step is Check the IP Address by running command: ip a The following ip address of machine will appear Now the next Step is Access Your App in the Browser then press enter and the following screen will appear 🚀 **Congratulations!** If everything worked—you’ll see your Spring Boot app live! Exit and Destroy the Vagrant Machine (Cleanup) After verifying the app in the browser, clean up your VM: exit vagrant destroy **This command:** **Logs out of the VM** **Prompts you to confirm destroying the environment** **Frees up system resources** **Final Thoughts** ❤️ This hands-on guide is your stepping stone into automation with shell scripting. Share this with your peers and drop your questions below. Happy scripting!
0 0 0 0
Preview
Shell scripting Full Course | Bash Scripting Mastery: From Basics to Advanced Shell Programming Unlock the power of shell scripting with our comprehensive course designed for beginners and advanced users alike. Dive deep into Bash programming, learn essential scripting techniques, and master too...

Shell scripting Full Course | Bash Scripting Mastery: From Basics to Advanced Shell Programming 2twu.com/post/7500236...
#bash #sh #linux #shellscripting #cli #programming #sysadmin

0 0 0 0

🧩 What do you call parameters that are optional—until another one is used, making them required? Example: A flag you don't need on its own, but must include when paired with another. Is there a standard term for this in #Bash or #ShellScripting? #Linux #Scripting

0 0 2 0