Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • I'm unable to run PowerShell scripts on my computer, so I had created a bash script instead. I tried running PowerShell from within the bash script but failed to get the results I wanted, and this solution was the only one that worked.
    – purplecat
    Commented Mar 11, 2020 at 20:17
  • Thanks for sharing! I created an alias for this in my WSL ~/.bashrc file: alias clip='iconv -f utf-8 -t utf-16le | clip.exe' Now I can pipe output to it like echo 'αβψδεφγ' | clip
    – piercebot
    Commented May 21, 2020 at 0:41
  • Perfect, exactly what I needed to get this working on Cygwin. Commented Jan 31, 2021 at 0:54