This is my code, it runs but does nothing.
ls | ruby -ne \'File.delete($_) if File.extname($_)==".jpg"\'
I thought it was string c