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

Even shorter, avoiding the echo sed business:

  find images -name '*.jpg' | while read jpg; do
      convert -geometry 200x "$jpg" "${jpg%%.jpg}_thumb.jpg";
  done


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

Search: