Thursday, May 2, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 726  / 2 Years ago, mon, june 13, 2022, 1:36:57

Suppose you have different files in a directory: one.txt, two.jpg, three.pdf, four.jpg etc. You want to copy them all to clipboard from the command line. Something like copyclipboard *. How do you do it?



Based on this answer, which solves for a particular case, but has the filetype hardcoded in the script. I wonder if there is a more general solution.


More From » command-line

 Answers
7

Is this to speed up some workflow you have or for some script?



What I usually do is that when I enter the folder with the files I want to copy I run
nautilus . to get the file browser. The workflow problem I see with copying straight from terminal is that you still need to browse to the folder where you want to paste the files later on.



Please comment if I'm missing something here.


[#34507] Monday, June 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atelti

Total Points: 194
Total Questions: 129
Total Answers: 110

Location: North Korea
Member since Tue, Jun 16, 2020
4 Years ago
atelti questions
Fri, Aug 26, 22, 02:44, 2 Years ago
Sat, Dec 10, 22, 21:37, 1 Year ago
Sat, Apr 9, 22, 13:57, 2 Years ago
;