Hacker News new | past | comments | ask | show | jobs | submit login

My brain refuses to learn bash conditional syntax. Personally, when I’m about to write a conditional in bash I take it as a cue to switch to another language.



    for i in $( ls | grep “a complicated enough filter that I never have to use conditionals in my loop”) ;
    do
         echo -n “if I don’t want to work on ” $i 
        echo “ it is time to change languages” 
    done




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: