minus-squareTangentism@lemmy.mltoProgrammer Humor@lemmy.ml•Like programming in bashlinkfedilinkarrow-up1·2 months agoYou could write that as 1 line: [ -z "$var" ] && echo "empty" || echo "no it aint" linkfedilink
You could write that as 1 line:
[ -z "$var" ] && echo "empty" || echo "no it aint"