Programming Joke of the Day: Mar 11, 2026
Check out our app: https://restlesside.com 🚀 #programming #programminghumor #programmingjokes #shellscript #bash
Latest posts tagged with #shellscript on Bluesky
Programming Joke of the Day: Mar 11, 2026
Check out our app: https://restlesside.com 🚀 #programming #programminghumor #programmingjokes #shellscript #bash
#!/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
I really despise Linux shell script from time to time. Why does the first process to get the standard input consume it? WHY?!
I wish I could tag this as a cognito hazard...
#linux #shellscript #programming #why #deargodwhy
シェルスクリプトで引数を(スペース等で)壊さずに引き継ぐときの正解は"$@"で、
sh -cを使う場合はsh -c '..."$@"...' -- "$@"という話、
忘れそうなので以下にまとめました。
www.techtips.page/ja/topics/884
#sh #ShellScript #Linux #POSIX
I spent WAY too long on a simple “don’t run bash script if it’s already running” solution. Here’s what I eventually worked out in case it’s helpful #bash #shellscript
OTHER_PIDS=$( pidof -x -o %PPID "$( basename $0 )" )
if [ -n "${OTHER_PIDS}" ]; then
# script is already running
exit
fi
MisskeyのAPIの叩き方(curl, Ruby) #ShellScript - Qiita https://mnmm.top/hvr
xargsの使い方 "xargs 完全理解マニュアル - xargs は多すぎる引数を分割するコマンドって知っていますか? #ShellScript - Qiita" https://qiita.com/ko1nksm/items/34cd96d39c2c5cd80eb4 #console #Tools #document
見てる: "xargs 完全理解マニュアル - xargs は多すぎる引数を分割するコマンドって知っていますか? #ShellScript - Qiita" https://qiita.com/ko1nksm/items/34cd96d39c2c5cd80eb4
Je vais garder ça comme exercice pour une prochaine formation #shellscript
Je propose une approche simple :
tr "[:punct:][:space:]" "\n" < bovary.txt | tr [:upper:] [:lower:] | sort | uniq -c | sort -nr
memo. パスフレーズを削除しない方法。
[SSL使用時にApacheの再起動時で必要なパスワードの入力を省略 #ShellScript - Qiita](qiita.com/yoshizaki_91...)
🧠 ¿Qué estás ejecutando en Linux? Conoce la diferencia entre programas, scripts, comandos internos, funciones y alias ciberninjas.com/que-es-lo-qu...
#LinuxTips #ComandosLinux #ShellScript #ProgramaciónLinux #SysAdmin #LinuxAvanzado #ConsolaLinux #TerminalTips #HackeoÉtico
🐧💡 Linux Tip of the Day
Run a script in the background and let it survive after closing your terminal:
nohup bash script.sh > output.log 2>&1 & disown
✨ Useful when running long processes over SSH!
#Linux #TuxTips #TerminalMagic #DevLife #ShellScript
AIMindUpdate News!
🚀⚡️Did you know shell scripts can corrupt data? Researchers propose static analysis to make them safer! #ShellScript #StaticAnalysis #SoftwareSecurity
Click here↓↓↓
aimindupdate.com/2025/05/08/s...
Cada día más cerca de reemplazar a Excel 🥹
#ShellScript #SeniorDeveloper
GNU awkがv5.3.0から、本家Awkが20230911から`--csv`オプションを導入しているとのこと / awkが新しくなる!? 本家AwkがUnicode (UTF-8)とCSV対応に! #ShellScript - Qiita qiita.com/ko1nksm/item...
How To Replace Text In Multiple Files Using A Bash Script In Linux #Bash #ShellScript #Linux #Linuxcommands #Linuxhowto #Linuxbasics
ostechnix.com/replace-text...
Make your Mac device management as powerful as the Mac you love.
Discover a step-by-step guide on remotely running shell scripts on #Mac devices with #Scalefusion #UEM. Simplify your #IT workflows and let Scalefusion do the heavy lifting.
See here: lnkd.in/dcDsDDYT
#shellscript #macadmin #macos
10年前で知識止まってたありがたい。とんでもないスイスアーミーナイフになってるな。
--
新しい curl コマンドの使い方 完全ガイド(2025年版) #ShellScript - Qiita https://buff.ly/3Dbo8w8
"新しい curl コマンドの使い方 完全ガイド(2025年版) #ShellScript - Qiita" https://qiita.com/ko1nksm/items/30982a5f357f26ae166f
Automatic Let's Encrypt (DNS) Wildcard SSL Certificate Renewal with `acme.sh` for Kestrel implemented.
github.com/acmesh-offic...
#dotNET #Kestrel #Yarp #LetsEncrypt #acme #shellscript #Ubuntu #SSL #Wildcard #DNS
How to Use the declare Command in Bash Scripts #declare #Bashscripting #Shellscript #Bash #Linux #Linuxcommands #Linuxhowto #Variables #Functions
ostechnix.com/bash-declare...
Want to have inspirational quotes from your favorite historical figure every time you log in to your command line? Here's a shell script to do just that for Mac/Linux, with quotes from Dr. Martin Luther King Jr.: www.askdavetaylor.com/how-to-creat... #linux #shellscript #programming #bash #mlk #mac
Which USB devices are currently attached?
Quick Tip: Which USB devices are currently attached? sixcolors.com/post/2025/01/quick-tip-w... from @jsnell@zeppelin.flights @jsnell #Mac #unix #shellscript
Another week another backlog project release!
git-commit-message-summary-length measures the length of a commit message's first line, and compares that to soft and hard limits.
git-commit-message-summary-length.olets.dev
#git #CLI #OpenSource #ShellScript
Pythonのshというライブラリを使うと、`sh.ls("-la")`みたいな感じにPythonプログラムからコマンドが実行できる。これ、いいですね #python #shellscript
sh — sh 2.0.6 documentation: https://sh.readthedocs.io/en/latest/
Trying to build a small shell script for DDev. Small project to get myself working on basic stuff like that.
#ShellScript
#SimpleProgramming
Ano que vem meu foco será em automação. Bora pars os cursos de #python, #shellscript e #kubernetes
Se torne um expert em linha de comando! 🖥️
É a ferramenta perfeita para aprender e dominar, de uma vez por todas, linha de comando!
Compartilhe!
#shell #shellscript #linhadecomando #codigo #ViUmaVaga