LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2020, 04:13 AM   #1
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Rep: Reputation: Disabled
wget - newbie question


So I'm fairly new to linux in general and I'm starting to try and learn shell scripting. I've found a decent tutorial at http://web.deu.edu.tr/doc/oreily/unix/ksh/index.htm
but I'd like to be able to read it and similar pages when not connected to the net. Would wget be the recommended method for such a task? I'd preferably like to be able to read it in similar fashion to the system's man pages but if wget saves the pages as .html files, then I guess I could just open them in links browser.
 
Old 08-02-2020, 04:55 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
This is from the very first edition of The UNIX CD Bookshelf by O'Reilly from year 1998. The book itself is even older. Besides, bash is the standard shell on Linux, not ksh. I think you'll be better off learning bash scripting with Advanced Bash-Scripting Guide or Greg's Bash Guide. The official GNU Bash Manual is also very useful and can be downloaded in different formats.
 
1 members found this post helpful.
Old 08-02-2020, 05:11 AM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Wget saves whatever you ask it to save. If 'wget http://web.deu.edu.tr/doc/oreily/unix/ksh/index.htm' you get a file named index.htm. If 'http://web.deu.edu.tr/doc/oreily/unix/ksh/' you get a file named index.html. Except for the name, both are identical, so work identically in a browser. 'wget http://web.deu.edu.tr/doc/oreily/unix/ksh/' implies a request for 'http://web.deu.edu.tr/doc/oreily/unix/ksh/index.html'.
 
1 members found this post helpful.
Old 08-02-2020, 05:14 AM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by shruggy View Post
Besides, bash is the standard shell on Linux, not ksh. I think you'll be better off learning bash scripting ...
I think this maybe related to this issue, where the provided install script is, in fact, a ksh script.

@OP: This command should do what you want:
Code:
wget -k --no-parent -r 'http://web.deu.edu.tr/doc/oreily/unix/ksh/index.htm'
 
1 members found this post helpful.
Old 08-02-2020, 05:32 AM   #5
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
This is from the very first edition of The UNIX CD Bookshelf by O'Reilly from year 1998. The book itself is even older. Besides, bash is the standard shell on Linux, not ksh. I think you'll be better off learning bash scripting with Advanced Bash-Scripting Guide or Greg's Bash Guide. The official GNU Bash Manual is also very useful and can be downloaded in different formats.
Thank you but I am also learning bash as well. I'm just trying to learn Korn shell so I can edit a korn script I want to edit at some point.

And thanks crts!

Last edited by burning; 08-02-2020 at 05:34 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to resume an interrupted wget using wget.log? misterJ Linux - Software 2 06-19-2011 01:21 PM
wget not working! but "man wget is" ??? wrapster Solaris / OpenSolaris 5 07-30-2008 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration