Article

Bash Shell Scripting

This post contains short tables of commonly used items in this shell. In most cases, the information applies to both the Bourne shell (sh) and the newer bash shell. The best resource for understanding existing shell scripts is explainshell You can learn shell scripting interactively online. Good practices: #!/bin/bash #Explicitly tell Read more…

By Azure Steve ☁️, ago
Article

Essential Linux Command Line Tools

In my previous post, I explaind Understanding the Linux Command Line. The following are what I consider essential command line tools. Essential Command Line Tools jq – it’s sed for json files Essential Programing Tools Ubuntu 16.04 and 18.04 comes with Python 2.7 installed. You may want to install python3. npm Read more…

By Azure Steve ☁️, ago
Reference

Linux GREP

grep is used to search for PATTERN in each FILE or standard input. PATTERN is, by default, a basic regular expression (BRE). Example: grep -i ‘hello world’ menu.h main.c Usage: grep [OPTION]… PATTERN [FILE]… Regexp selection and interpretation: -E, –extended-regexp PATTERN is an extended regular expression (ERE) -F, –fixed-strings PATTERN Read more…

By Azure Steve ☁️, ago
Reference

Linux SED

sed (stream editor) is a Unix utility that parses and transforms text, using a simple, compact programming language. $ sed -i 's/cat/dog/' file.txt # this will replace any occurrence of the characters 'cat' by 'dog' Usage: sed [OPTION]… {script-only-if-no-other-script} [input-file]… -n, –quiet, –silent suppress automatic printing of pattern space -e Read more…

By Azure Steve ☁️, ago