Skip to content

Riaan's SysAdmin Blog

My tips, howtos, gotchas, snippets and stuff. Use at your own risk!

  • About

Bash

Bash 

sed remove ansi colors from output

April 30, 2023 admin

Using ansi colors can be very helpful to see script out[put. Example of cleaning ansi color codes from output before

Read more
Bash OCI 

Bash alias inside a script

March 16, 2023March 19, 2023 admin

If you need to use an alias inside a script you need this: shopt -s expand_aliases source ~/.bash_aliases I recently

Read more
Bash Linux 

Linux Shell Incremental Search

February 6, 2022February 6, 2022 admin

You probably use (and rely) on command search a lot already but thought I would add something about fish. If

Read more
Bash Gnome 

Gnome Desktop Shortcut Exec

January 1, 2021January 1, 2021 admin

Executing commands or scripts from a GNOME desktop shortcut I have a few scripts that I only periodically execute. For

Read more
Bash 

bash-scan-text-block-reverse

April 12, 2020April 12, 2020 admin

example finding a block. start string and reverse search up to next string. then replacing a line inside the block

Read more
Bash jq json restic Uncategorized 

Bash Read Json Config File

December 14, 2019April 12, 2020 admin

Couple of things here: I wanted to do some restic scripts At the same time use a configuration file. The

Read more
Backups Bash restic 

Restic create backup and set tag with date logic

November 21, 2019April 12, 2020 admin

Also see previous post https://blog.ls-al.com/bash-date-usage-for-naming if you are interested. This post is similar but more specific to restic tagging. Below

Read more
Bash 

Bash Read Array From Config File

June 17, 2019June 17, 2019 admin

I was recently needing to read values from a configuration file into bash and had some success with reading json

Read more
Bash 

Bash History Plus Comment

March 25, 2019March 25, 2019 admin

If you like using Control-R in bash to find previous commands here is a useful tip. You can add a

Read more
Bash 

Test Tcp Open Port

August 15, 2018 admin

If you don’t have telnet or nc installed and want to quickly test firewall traffic to a server and specific

Read more
  • ← Previous

Recent Posts

  • Rancher Admin Password Docker Image
  • sed remove ansi colors from output
  • Bash alias inside a script
  • kubectl export
  • VirtualBox Host-Only Networking Change

Tags

Active Directory Ansible AWS Azure Backups Bash DNS Docker DynamoDB Firewall Gnome go javascript jq json Kubernetes KVM LDOM Linux Logging LVM Nagios nfs OCI Oracle Bare Metal Cloud Services OVM PHP Python rclone RDP restic Security Sendmail SMTP Solaris SSH Terraform Ubuntu Uncategorized Video Encoding Virtualbox VNC VPN Windows ZFS
Copyright © 2023 Riaan's SysAdmin Blog. All rights reserved.
Theme: ColorMag by ThemeGrill. Powered by WordPress.