Introduction to Shell Programming

Veröffentlicht am: 08 November 2019
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video Introduction to Shell Programming mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Brian 08 November 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 79 Mal angesehen und es wurde von 6 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!