Wikipedia Command Line
Kata ubuntublog di wordpress, pake code:
#!/bin/bash
lynx -dump "http://en.wikipedia.org/wiki/$1" | less
Bisa buat liat wiki pake command line.. (kasian yg buat browser, cape2, dibagus2in, nerd yang satu ini malah buka situs pake CLI) .
alterego says, “Alah.. emangnya elu juga kagak buka situs pake skrip?”
Ya gitu deh..
Pokoknya jangan lupa chmod +x, lalu tempatkan argumen dalam quotation biar masuk ke $1 semuanya..
hanan:~# apt-get install lynx
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
lynx
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1852kB of archives.
After unpacking 4395kB of additional disk space will be used.
Get:1 http://security.debian.org stable/updates/main lynx 2.8.5-2sarge1 [1852kB]
Fetched 1852kB in 4m24s (7007B/s)
Selecting previously deselected package lynx.
(Reading database ... 22295 files and directories currently installed.)
Unpacking lynx (from .../lynx_2.8.5-2sarge1_i386.deb) ...
Setting up lynx (2.8.5-2sarge1) ...
hanan:~# vi wikid
hanan:~# chmod +x wikid
hanan:~# ./wikid Ubuntu
Ubuntu
From Wikipedia, the free encyclopedia
Jump to: [3]navigation, [4]search
Look up [5]ubuntu in [6]Wiktionary, the free dictionary.
Ubuntu may refer to:
* [7]Ubuntu (ideology), a humanist South African ideology.
* [8]Ubuntu Linux, a popular Linux distribution.
This is a [9]disambiguation page: a list of articles associated with
the same title. If an [10]internal link referred you to this page, you
may wish to change the link to point directly to the intended article.
Retrieved from "[11]http://en.wikipedia.org/wiki/Ubuntu"
Sayangnya skripnya nggak clean nih.. nggak balik ke shell lagi. wah masih bagusan skrip sya dong *uhuk*..
