ruby-e"l=STDIN.readlines; 10000.times {printl.sample}"<**file_name.csv**|wc-l
When I try to do this on the Power Shell, how should I describe it?
(Get-Content**file_name.csv** | ruby-e "l=STDIN.readlines; 10000.times {printl.sample};") .Length
I tried to write it like this, but I couldn't get any results.
Sorry for the beginner's question, but if anyone knows, please let me know.
There seems to be no space between ruby-e
and "
, which results in an error.
(Get-Content**file_name.csv** | ruby-e "l=STDIN.readlines; 10000.times {printl.sample};") .Length
© 2024 OneMinuteCode. All rights reserved.