3
votes
1answer
74 views

pbcopy exits code 1, no error message

I'm trying to use pbcopy and pbpaste to copy and paste to the clipboard from a shell. I read the man page to learn the syntax for these programs. However, no matter how I try to invoke pbcopy or ...
2
votes
1answer
24 views

CLI to copy to clipboard but still output to term ?

I know that piping to pbcopy copies command line outputs to the clipboard. How can I still show the output in the terminal ?
11
votes
3answers
2k views

Text copied from Terminal with formatting in Mavericks

After the update to Mavericks, anything copied from Terminal is pasted in the target app with the same formatting as in Terminal, in my case, white monospaced letters on a black background, e.g.: ...
1
vote
1answer
200 views

Copy and Paste files into the same directory using Terminal

I am currently trying to figure out how to Copy and Paste files (more than one file) into the same directory using Terminal. I am trying to create a script to create the same file. If there is a ...
1
vote
2answers
4k views

how to move files in terminal osx

Hello world so i am way new to mac i am trying to install an older version of wkhtmltopdf because the brew install wkhtmltopdf installs a rc version that just wont work. So i found this blog that ...
1
vote
1answer
311 views

Emacs copy a paste line with comment adds extra space / line

I work in emacs in a termal tab, and instead of using the built in copy and paste shortcut commands I generally just highlight (with the mouse) to copy and paste. This works fine for normal ...
0
votes
1answer
2k views

How to copy data from harddrive to time capsule over USB connection via OSX terminal?

I want to copy a big amount of data from a harddrive to a time capsule controlled drive.so I put the harddrive via USB to the capsule and connect to the capsule server with a Mac. But when I then move ...
4
votes
3answers
550 views

pbpaste, pbcopy using wrong pasteboard?

I'm converting a shell script which xclip and similar tools on Linux, to use pbpaste and pbcopy on Mac. The problem is the default pasteboard ('general' according to the man-page) for these tools is ...
0
votes
1answer
269 views

pasting commands from TextWrangler to Terminal (applescript troubleshooting)

I have a following script that I have been using for years to paste selection or a whole line from TextWrangler to R. I got it from some website, slightly modified, and it has worked perfectly: tell ...
2
votes
3answers
225 views

What tools exist to recover a file I clobbered using cpp in terminal?

I accidentally typed cpp Scriptname.py DestinationDirectory, intending to copy the Python script into the folder. I realized afterward that I should have used cp, but now my Python script is ...
1
vote
2answers
718 views

Paste text stored on Clipboard to a variable using pbpaste

I have some text stored on my clipboard. I want to store this text onto a shell script "variable". So something like: ls -altr > pbcopy tmp="something" pbpaste > $tmp # this doesn't get the ...
1
vote
1answer
552 views

Copy system bundle to a Mac on network?

I screwed up while using Monolingual and removed the "AppleKeyboardLayouts.bundle". Before I realized what happened, I logged out and now I can't type a password to log back in. I have tried to copy ...
5
votes
2answers
1k views

How can I merge two similar-but-not identical folders?

I have a folder (which is filled with many many sub-folders and files) which is on a FireWire drive [source] which I am trying to move to a USB drive [destination]. I am trying to move all of the ...