Go Back   Cyber Tech Help Support Forums > Operating Systems > Windows 10

Notices

Windows 10 Problem solving for the Windows 10 Operating System.

Reply
 
Topic Tools
  #1  
Old June 10th, 2024, 11:59 AM
TahuluLimia TahuluLimia is offline
New Member
 
Join Date: Apr 2024
Posts: 1
Clipboard piping in Bash possible?

Can you pipe to/from the clipboard in Bash?

I haven't found a way, whether it's through piping to/from a device handle or using an auxiliary application.

For instance, if /dev/clip were a device linked to the clipboard, we could use:

cat /dev/clip # Dump the contents of the clipboard
cat foo > /dev/clip # Dump the contents of "foo" into the clipboard
Reply With Quote
  #2  
Old June 11th, 2024, 04:04 PM
Ned Seagoon's Avatar
Ned Seagoon Ned Seagoon is offline
CTH Subscriber
 
Join Date: Jun 2004
O/S: Windows 10 Home
Location: Sunshine Coast, Australia
Age: 81
Posts: 3,706
Not to many Windows users will know much about Bash, as opposed to the Linux users who will be very familiar if they are command line users. But in the later versions of Windows 10 it is possible to enable Bash Command line actions.
Take a look here to discover if there is an answer to your question.
Reply With Quote
  #3  
Old June 12th, 2024, 07:18 AM
Ned Seagoon's Avatar
Ned Seagoon Ned Seagoon is offline
CTH Subscriber
 
Join Date: Jun 2004
O/S: Windows 10 Home
Location: Sunshine Coast, Australia
Age: 81
Posts: 3,706
I've not found a method to directly dump to the clipboard however a possible work around would be to write to a .txt file and then in windows copy the contents of the .txt file to the clipboard.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:47 AM.