I have following block of code that I want to pass to copy-to-clipboard macro
for f in *.wav
bmtool -v audioConvert -f mp3 "$f"
end
I tried
<<copy-to-clipboard "for f in *.wav
bmtool -v audioConvert -f mp3 "$f"
end"
>>
But the copied text is terminated right when it encounters first double quite, i.e "$f". Clipboard gets
for f in *.wav
bmtool -v audioConvert -f mp3 "
How do I get around this?
I have tried,
<<copy-to-clipboard src={{"for f in *.wav
bmtool -v audioConvert -f mp3 "$f"
end"}}
>>
But this too didn’t work.
<<copy-to-clipboard """
for f in *.wav
bmtool -v audioConvert -f mp3 "$f"
end
""">>