pmduxw
Last Updated: August 30, 2016
·
9.225K
· jwebcat
70e1167dbde5397557b0ec6fabb3d90a

copy files to clipboard in windows git bash

for windows 7 users you can access the clipboard from shell too :)

-

  • to copy from a file
$ cat file > /dev/clipboard
  • to paste into a file
$ cat /dev/clipboard > file
  • or to check the contents of the clipboard
$ cat /dev/clipboard

:) enjoy.

Say Thanks
Respond

4 Responses
Add your response

7038
E30535c1adcfda758dccaafc329b4650

I get permission denied to the clipboard.

over 1 year ago ·
7041
70e1167dbde5397557b0ec6fabb3d90a

Hmm are you using an administrator account?

You can also use

$ clip < thing to copy
# then to paste
$ clip > file
over 1 year ago ·
7042
70e1167dbde5397557b0ec6fabb3d90a

Made sure you have then first /
Like: /dev/clipboard

It should work on windows bash.

over 1 year ago ·
16316
F01b5be62004f192cffc82a975c0f66b

Thanks!

over 1 year ago ·
Filed Under