Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I frequently face a situation where some URL opened I need to copy and paste it in a text file. So I want to know if there is a command line way to quickly do it because manually doing it each time is very time consuming.Or if there is any software for same.

share|improve this question

migrated from Mar 10 '11 at 21:13

This question came from our site for system and network administrators.

up vote 1 down vote accepted

This superuser question may help.

share|improve this answer
@sciurus wow this is exactly what I was looking for.Thanks for your help. – Registered User Mar 10 '11 at 20:47

They're not called vi files. Just files. This is pretty basic, just echo append it into a file.

   $ echo "<url>" >> urls.txt
share|improve this answer
@malfy you did not got my question.I have opened a lot of URLs in browser now I open a file in VI in this process I use my mouse copy the URL open a text file in an editor known as vi and paste it.This is a tedious thing to do.Can this be automated? – Registered User Mar 10 '11 at 14:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.