Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't think that example really shows the benefits of the "Powershell way". There's hardly any need for objects and what-not when solving an easy problem like this; strings will do just fine. With Bash, a close equivalent would be:

  for f in {0001..0500}_A.csv; do test -e $f || echo $f; done


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

Search: