Write A Script To Search the Arch Wiki (OFFLINE!)

preview_player
Показать описание
Every few weeks, I get the sudden urge to do some bash scripting. Today, I'm going to create a simple bash script that uses dmenu to search an offline copy of the Arch Wiki. Follow along with me, and we should be able to knock this script out in under 30 minutes.

REFERENCED:

WANT TO SUPPORT THE CHANNEL?

DONATE CRYPTO:
💰 Bitcoin: 1Mp6ebz5bNcjNFW7XWHVht36SkiLoxPKoX
🐶 Dogecoin: D5fpRD1JRoBFPDXSBocRTp8W9uKzfwLFAu
📕 LBC: bMfA2c3zmcLxPCpyPcrykLvMhZ7A5mQuhJ

DT ON THE WEB:

FREE AND OPEN SOURCE SOFTWARE THAT I USE:

Your support is very much appreciated. Thanks, guys!
Рекомендации по теме
Комментарии
Автор

Nice video! So I'm using rofi as an alternative to dmenu. Could I just replace dmenu with rofi (with the proper flags of course) without it breaking?

eyssewieringa
Автор

I love this bash scripts videos. When I watch them i like to chalenge myself and try to solve it before you do, and I always learn something new. Keep it up!

Miguel_GM
Автор

i love those scripting videos cuz i try to solve problems before u do and i learn alot

yousefkhaled
Автор

I can't believe the wiki docs is available as a package. I LOVE Arch! Nothing else could have pulled me away from macOS. ☮️❤️🌈🧘🏽

RichardBronosky
Автор

27:48, Sort from "a" or "A". Starting from numbers look like some kind of temp or cache files. Put the lines which are start from numbers to the bottom it will improve the overall look and feel.

random_monster
Автор

This is pure pleasure to watch, thanks once again DT! <3

Ohmygodzilla
Автор

I love this! Thanks for walking us through how to write a useful shell script!

WaySensei
Автор

Hey DT. It's not much, but I wanted you to know that I learn A LOT with your videos. Great stuff, man. Thank you so much for your time.

carecavoador
Автор

Thanks. I always look forward to the BASH projects. Good review and I always get an idea or learn something that I can employ down the road. I like the GNU tools version to "Git er done" with the available, free utilities.

muddyexport
Автор

Hey DT, a quick tip at 8:20 you open another script and copy some lines that you use in all your scripts. Instead of that you can create a yasnippet snippet and just add a keybinding to add that snippet anywhere you want. You can also make a yasnippet snippet prompt you for certain things when you insert it, like in this case you change the description, dependencies and all.

apoorv
Автор

Great channel. I always learn something new! In this one I'm more interested in the tool you use to show suggestions for console commands.

Cybugs
Автор

Nice work. Bash scripting is something that I need to brush up on.

keylowmike
Автор

Nice video :)
also find includes a printf command, you can print basenames with it

tlast
Автор

Thank you for all your videos, they really helped me to get a better understanding of everything Linux. Greetings from Germany <3

morgsable
Автор

Nice video (as usual). I think we could have used `basename` instead of `cut` to get the file name from the full path

farzadmf
Автор

Super coolness. Sadly, the Arch wiki is the only one that is near excellence.Debians is OK...sorta...but you have to search the POS with Goofle to find anything. I miss Ian

dougtilaran
Автор

Hey DT great minds and all, I did a video on this a while ago, just not with dmenu, and I used awman. Great vid.

JakeLinux
Автор

Find give you a list, you make it an array and then again a list with printf. Nice idea tho, super usefull.

francoissevestre
Автор

You could use the LANG variable so the user could use the script with no change.
Of course, you would need to check if the variable is set and the language is available in the wiki. If not, you could use english as default

gocomputing
Автор

Nice idea! Very useful, specially if you have a bad time with your wi-fi, but, I have a question: does wikidocs actually is an array? I think it is only an string... but I'm not sure.

giulianotaormina