Using Case Statements and Flags to Consolidate My Bash Scripts

  Рет қаралды 1,210

linux dabbler

linux dabbler

Жыл бұрын

Intro Music from bensound.com
GitLab
gitlab.com/linuxdabbler
KZbin
/ linuxdabbler
Twitter, MeWe, Mastodon.social
@linuxdabbler
Software I use:
Librewolf -- Web Browser
Firefox -- Web Browser
OBS Studio -- Recording Software
Kdenlive -- Video Editor
Audacity -- Audio Editor
Vim/Neovim -- Text Editor

Пікірлер: 23
@miyolinux
@miyolinux Жыл бұрын
I know there was something about consolidating scripts in this video, but when I saw Devuan, I drifted off into a dream-world of butterflies fluttering across a field of flowers, the sound of birds singing on a cool spring morning, and Alabama beating the mess out of Auburn. 😌 Thanks Mike, I'll check out your amazing work! Great stuff!
@topherfungus8424
@topherfungus8424 Жыл бұрын
Consolidating like that is a great idea, duplication of code is almost always a bad thing and too hard to maintain. One thing I also try to do is test my scripts in different environments and make sure they work. Another thing you might consider (for both maintainability and portability) is to define your terminal color variables in your profile so that you don't have to duplicate all that code in your scripts.
@TheLinuxCast
@TheLinuxCast Жыл бұрын
I really need to do more scripting. Great video, as always!
@linuxdabbler
@linuxdabbler Жыл бұрын
@The Linux Cast. I appreciate it Matt! Thanks again for the shout out, it got me to 3k the next day. Lol
@Bruces-Eclectic-World
@Bruces-Eclectic-World Жыл бұрын
@@linuxdabbler Awesome! 🎉🎆
@Bruces-Eclectic-World
@Bruces-Eclectic-World Жыл бұрын
Awesome! My what a change. I have started to use case statements and function more too. I made a script that changes my Leftwm theme, the fetch screen for my terminals, conky and resets the desktop image and back with just a press of 1 or 2... What this does removes all my all my personal stuff for making my videos. It is kinda slick and yes I did it all with 4 scripts and now 1... Lol Can't wate for the Spectrwm video! LLAP 🖖
@linuxdabbler
@linuxdabbler Жыл бұрын
@Bruce's Eclectic World. That's awesome Bruce! Can you believe I still haven't looked at leftwm... Shameful I know. But you are wearing me down and I will eventually have to try it out. Lol. Hope all is well buddy. LLAP
@Bruces-Eclectic-World
@Bruces-Eclectic-World Жыл бұрын
@@linuxdabbler Hahahaha... One little poke at a time and I will eventually Win!... 🤣 Don't get me wrong, I still use SpectrWm too. 😆 LLAP
@linuxdabbler
@linuxdabbler Жыл бұрын
@@Bruces-Eclectic-World "One little poke at a time and I will eventually Win!" LOL. I may have to steal that one from you.
@Bruces-Eclectic-World
@Bruces-Eclectic-World Жыл бұрын
@@linuxdabbler It's all yours! 🤣 LLAP
@TheLinuxCast
@TheLinuxCast Жыл бұрын
BTW, do you have your youtube subscriber script (the one on your bar) up somewhere? I looked through your dots, and didn't see it, though I may have missed it
@linuxdabbler
@linuxdabbler Жыл бұрын
I don't think I put it in my dots, but I will add it for you shortly. It's kinda hacky... But I set up a cron job to run every hour and output the sub count to a file and poll the file instead of the website.
@linuxdabbler
@linuxdabbler Жыл бұрын
Should be there now in .local/bin/subs.sh
@TheLinuxCast
@TheLinuxCast Жыл бұрын
@@linuxdabbler thanks!
@Bruces-Eclectic-World
@Bruces-Eclectic-World Жыл бұрын
@@linuxdabbler Thats how I do my weather script. I have my server run a cron job and all my fetches pull from that text file on the server... Lol LLAP
@Bruces-Eclectic-World
@Bruces-Eclectic-World Жыл бұрын
@@linuxdabbler Now I have to go and look... 🤪
Automatic BTRFS snapshots with APT Hooks
6:02
linux dabbler
Рет қаралды 2,3 М.
Bloating up DWM 6.4 with 12 patches
37:57
linux dabbler
Рет қаралды 7 М.
Зачем он туда залез?
00:25
Vlad Samokatchik
Рет қаралды 3,3 МЛН
КОМПОТ В СОЛО
00:16
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 29 МЛН
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 26 МЛН
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 9 МЛН
アマチュア無線WARCバンド18MHzの運用とアンテナ選び 第一電波工業CPATUという選択肢
13:59
ももチャンネル! アマチュア無線&ライセンスフリー無線で遊ぶ
Рет қаралды 468
pluginless neovim
15:28
linux dabbler
Рет қаралды 12 М.
You don't know Bash as well as you think
30:35
glich.stream
Рет қаралды 1 М.
Which PLUGIN IS THE BEST for Neovim/Git? (PRACTICAL EXAMPLES included)
8:32
Tech FUN-dementals
Рет қаралды 1,1 М.
Parse Command Line Positional Arguments and Flags with Bash
17:46
Nick Janetakis
Рет қаралды 1,5 М.
VIFM in-depth look and customization
40:38
linux dabbler
Рет қаралды 6 М.
Building the Suckless Terminal from Scratch
25:29
linux dabbler
Рет қаралды 3,2 М.
Case Statements - Bash Scripting
5:42
Sonar Systems
Рет қаралды 2,7 М.
Install QTILE on Debian 12 Bookworm with Python Virtual Environment
17:36
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 6 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 61 МЛН
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,5 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 455 М.
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 1,2 МЛН
Я купил первый в своей жизни VR! 🤯
1:00
Вэйми
Рет қаралды 1,5 МЛН