this post was submitted on 21 Jan 2026
374 points (99.2% liked)
Programmer Humor
28738 readers
1987 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
perhaps i too will post code on the internet
here is a shell script i wrote for automating filenames for markdown files (blog posts):
code
im not sure why i made it since i could just look at what date it is and write it down manually in the file name, but i felt like doing that as a quick hack
Scripts aren't just for complex tasks. They're also for consistency.
Here is my most recent script, not gonna lie, pretty proud of this bad boy. /s
shjava per/med/xwpp01 A001 conv.txt
echo 'yo'
shjava per/med/xwpp01 A002 conv.txt
echo 'yo'
shjava per/med/xwpp01 A003 conv.txt
echo 'yo'
shjava per/med/xwpp01 A004 conv.txt
echo 'yo'
shjava per/med/xwpp01 A005 conv.txt
echo 'yo'
shjava per/med/xwpp01 A006 conv.txt
echo 'yo'
shjava per/med/xwpp01 A007 conv.txt
echo 'yo'
shjava per/med/xwpp01 A008 conv.txt
echo 'yo'
Love this kind of stuff. I have a whole reposity of fish functions that do stuff because I'm too lazy :)
Only thing I can recommend (as well as for literally any script) is using set -u. Only because it's awful to debug unset variables and there's never a use case for using unset variables.