In this video, we cover the basics of Shell Programming.
We also cover how to create a file and make it executable. How to create a text line output about using the echo command. We also cover how to use special escape sequences for interpreting special characters for enhanced echo functionality (e.g. newline). You can even extract the values from the outputs of commands. Such as $(cat /var/log/syslog | wc -l) which can then be used in an extracted and used as output for an echo command.
Sample Code:
#!/bin/bash
echo -e "One Liner - What time is it?\n"$(date)"\nWho am I\n"$(whoami)
echo -e "\n\n\n\n\n"
echo "What time is it?"
date
echo "Who am I"
whoami
In questa pagina del sito puoi guardare il video online Introduction to Shell Programming della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Brian 08 novembre 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 79 volte e gli è piaciuto 6 spettatori. Buona visione!