Introduction to Shell Programming

Published: 08 November 2019
on channel: Brian
79
6

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


On this page of the site you can watch the video online Introduction to Shell Programming with a duration of hours minute second in good quality, which was uploaded by the user Brian 08 November 2019, share the link with friends and acquaintances, this video has already been watched 79 times on youtube and it was liked by 6 viewers. Enjoy your viewing!