dt.iki.fi
android
(10)
apt
(1)
archlinux
(12)
bash
(6)
book
(1)
conky
(2)
debian
(4)
dotfiles
(2)
download
(1)
dreams
(1)
email
(3)
eyecandy
(16)
ffmpeg
(2)
film
(4)
finland
(2)
firefox
(7)
fonts
(7)
forum
(4)
gallery
(3)
git
(4)
gui
(1)
kali
(1)
lineageos
(2)
linux
(79)
lua
(1)
maemo
(5)
media
(8)
music
(4)
n9
(2)
n900
(3)
network
(2)
nginx
(1)
nokia
(6)
openbox
(2)
picocms
(4)
pinebook
(3)
quotes
(1)
research
(1)
review
(11)
sailfish os
(20)
scrapbook
(5)
security
(12)
server
(20)
shell
(10)
ssh
(1)
systemd
(7)
thinkpad
(1)
udev
(1)
ungoogle
(12)
useragent
(1)
weather
(2)
windowmanager
(4)
wireless
(1)
xterm
(1)
Photo Galleries
Archive
About
Feed
Site specific search with
DDG
Articles tagged bash
10.1.2021
bash,
linux
OpenNIC DNS updater script
Thoroughly tested and in daily use on Archlinux & Debian stable. This version requires name resolution to be already working when executed. OpenNIC’s geoip sorting is known to be unreliable …
12.9.2020
27.5.2018
shell,
bash
Shell Scripting For Speed
Inspired by a forum threadChoose which shell your scripts use, that’s the “#/bin/*sh” at the top:Once you made that choice, it should influence your coding quite …
1.9.2019
archlinux,
bash
Pacman and Optional Dependencies
Archlinux packages list optional dependencies: “An array of packages that are not needed for the software to function, but provide additional features.” But there’s no special treatment built in …
25.2.2019
linux,
bash
Using GNU bash? Forget date!
Since Version 4.2.0 GNU bash can print times in strftime format with printf.OK, the external date command can do a lot that bash’s builtin cannot do …
27.2.2018
linux,
bash
Load bash builtin from file
A few years ago I noticed that sleep is not built into bash and instead calls an external command each time.I like to make my scripts responsive and unobtrusive …
18.2.2018
bash
Bash: Test if a string is a web link
I sometimes need this in my scripts: if a string starts with either http:// or https://, it must be a web link. How can I test for that in a …