Ruby Terminal -e: making decisions based on $_ comparisons

前端 未结 0 1780
我在风中等你
我在风中等你 2020-12-05 01:19

This is my code, it runs but does nothing.

ls | ruby -ne \'File.delete($_) if File.extname($_)==".jpg"\' 

I thought it was string c

相关标签:
回答
  • 消灭零回复
提交回复
热议问题