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
Sur cette page du site, vous pouvez voir la vidéo en ligne Introduction to Shell Programming durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Brian 08 novembre 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 79 fois et il a aimé 6 téléspectateurs. Bon visionnage!