I have a long URL on a web page in Windows that I need to copy into bash shell in Unix. Is there a way to do this without retyping the URL?
You could use Synergy to share your clipboard between the two machines.
If you connect to unix using putty, copy the text from the browser, then right click on the putty window to paste.
If you are on Windows, and you have a Putty session into your unix box, then you can copy the URL to the clipboard in Windows, and then right-click in the putty window. This will do a paste. You could do that paste into a vi session and save the url.
Another option is using the write
command. That is, open a terminal on the unix box, and then use Putty to SSH into that same box. do a write tonge
(assuming 'tonge' is your user name), paste the URL, and press enter. The recipient (that is, you, with a bash terminal open) will receive that URL.
I routinely run x2vnc from a Linux box, and have a VNC server (RealVNC) running on a Windows box. This lets me share one mouse and keyboard across the two machines, and the clipboard is also shared across the machines.