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
На этой странице сайта вы можете посмотреть видео онлайн Introduction to Shell Programming длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Brian 08 Ноябрь 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 79 раз и оно понравилось 6 зрителям. Приятного просмотра!