Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 serverfault.com Mar 10 '11 at 21:13

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

add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.