LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-17-2001, 12:41 PM   #1
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
auto url parsing on console


would i be the only person to think that some sort of bash add on that could recognise any http:// reference and download for local use invisibly would be useful?

e.g.

[user@host user]# pico http://kernel.org/ilovelinus.txt

so the url would automatically be picked up, and wget used to get the file.... and i guess you could go both ways with ftp://'s as well...

useful.. or a bit pointless?
 
Old 12-18-2001, 04:07 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
Personally I wouldn't find that usefull. But I can see why others might. But would you use something like that only for viewing files? Or would it also have to work for saving files? Because I can imagine it would get a bit more complicated then. Since the shell has no knowledge of any http or ftp protocol.
And if it's just for viewing lynx always works for me. A simple command could let you view files with pico though if you really want:

wget http://kernel.org/ilovelinus.txt; pico ilovelinus.txt; rm -f ilovelinus.txt

That ofcourse wouldn't always be very neat because you might have a ilovelinus.txt already in the current directory. But you could make a nice script out of that and place the files in the /tmp directory each time.

I think it's because scripting is so powerful that things like that never get added to something like a simple shell which is ment to stay simple. It's those gui's that add a bunch of features like that but they never do manage to stay simple and small.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
URL parsing program in perl ludeKing Programming 3 09-30-2010 03:58 PM
Parsing URL in PHP benrose111488 Programming 6 10-12-2005 12:12 PM
Mozilla Linux Command Line URL Parsing Security Flaw Reported win32sux Linux - Security 9 10-06-2005 06:39 AM
Auto-logout on console switch cjpsparks Linux - General 2 11-20-2003 02:54 AM
Is it possible to auto login from console rrautens Linux - Newbie 10 10-15-2003 09:30 AM


All times are GMT -5. The time now is 01:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration