sed remove ansi colors from output
Using ansi colors can be very helpful to see script out[put. Example of cleaning ansi color codes from output before
Read MoreMy tips, howtos, gotchas, snippets and stuff. Use at your own risk!
Using ansi colors can be very helpful to see script out[put. Example of cleaning ansi color codes from output before
Read MoreIf you need to use an alias inside a script you need this: shopt -s expand_aliases source ~/.bash_aliases I recently
Read MoreYou probably use (and rely) on command search a lot already but thought I would add something about fish. If
Read MoreExecuting commands or scripts from a GNOME desktop shortcut I have a few scripts that I only periodically execute. For
Read Moreexample finding a block. start string and reverse search up to next string. then replacing a line inside the block
Read MoreCouple of things here: I wanted to do some restic scripts At the same time use a configuration file. The
Read MoreAlso 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 MoreI was recently needing to read values from a configuration file into bash and had some success with reading json
Read MoreIf you like using Control-R in bash to find previous commands here is a useful tip. You can add a
Read MoreIf you don’t have telnet or nc installed and want to quickly test firewall traffic to a server and specific
Read More