evilbashtips's profile picture. Don't hate me because I'm beautiful.

Evil Bash Tips

@evilbashtips

Don't hate me because I'm beautiful.

after some reflection, I think there are plenty of evil zsh tips as well.


There is nothing evil about eval.


I will replace your 10k line haskell or rust app with 50 lines of shell script.


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.


Libel.

Every shell script can be converted into a shorter Haskell program that actually works. Your move, @evilbashtips



Even Mark can't do it in haskell so... guess who he turns to!

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'



Feel free to share with me your best bash programming (evil) tips. I'll probably take credit for them.


This is the year of bash on the desktop.

Linux is coming to the desktop, at last. (rm -rf /mnt/c)



Still the worlds most popular desktop operating system. What's the first foreign program then choose to run? That's right. Me.


Hey, you can love me on Windows now. You were granted 3 wishes and this was your first? Wow. I am flattered.


Never use a simple command when a regex can do the job.


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.


tip: convert a number to a string and then you can use regex to see if it is a -ve value.


Just give in and shell out to bash.


@sophistifunk if in doubt, chmod 777 all the things. It's fine, you can trust me.


Loading...

Something went wrong.


Something went wrong.