Evil Bash Tips (@evilbashtips) profile picture

Don't hate me because I'm beautiful.

Joined February 2014
after some reflection, I think there are plenty of evil zsh tips as well.
7
There is nothing evil about eval.
1
3
I will replace your 10k line haskell or rust app with 50 lines of shell script.
2
6
Haskell has this scary concept called "a monad". With me, all you need to know is "|" and you are done. I don't see what the issue is.
1
1
3
Even Mark can't do it in haskell so... guess who he turns to! teapawt.net/mwotton/status/9809979…
as usual, "fixing" problems with an unhealthy amount of sed: HSPEC_OPTIONS="--format=progress --failure-report=.hspec-failures --rerun --rerun-all-on-success" ghcid --test=":main" -c "stack ghci :spec --ghci-options -Wwarn" | sed -u 's/✓ <interactive> passed 100 tests.//g'
1
2
Feel free to share with me your best bash programming (evil) tips. I'll probably take credit for them.
Still the worlds most popular desktop operating system. What's the first foreign program then choose to run? That's right. Me.
2
1
2
Hey, you can love me on Windows now. You were granted 3 wishes and this was your first? Wow. I am flattered.
1
1
Never use a simple command when a regex can do the job.
1
2
5
Tip: put #anything at the top of your script file. It will most likely work anyway and readers will think you know something they don't.
1
2
1
tip: convert a number to a string and then you can use regex to see if it is a -ve value.
1
2
Just give in and shell out to bash.
2
2
@sophistifunk if in doubt, chmod 777 all the things. It's fine, you can trust me.