« Back to Index

Shell: single line Ruby script in shell

View original Gist on GitHub

Tags: #ruby #shell #script

main.rb

cat tokens.txt | xargs -I % ruby -e 'require "digest"; puts Digest::SHA256.hexdigest("%")'