Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
wild_egg
· 3mo ago · 0 comments
Do you need to pipe the ruby output to bash? Ruby could just run the mv directly by wrapping in backticks instead of quotes.
Comments
[–]
zoky
3mo ago
Running it through the pipe lets you preview the command first and make sure it actually looks correct. Then you just re-run the command and append the bash pipe.