Get the App
SLTechnology News&Howtos  ›  Development  › 

A tutorial for getting started with Shell scripting

Shulou Source: shulou.com Published: 2022-06-03 08:19:37 10月01日 Update

This article mainly explains the "introduction to Shell script programming tutorial", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "introduction to Shell script programming tutorial"!

Example 1: drawing special graphics

The code is as follows:

#! / bin/bash

MAX_NO=0

Echo-n "Enter Number between (5 to 9):"

Read MAX_NO

If! [$MAX_NO-ge 5-a $MAX_NO-le 9]; then

Echo "WTF... I ask to enter number between 5 and 9, Try Again"

Exit 1

Fi

Clear

For ((iTun1; ionomi; smurf -))

Do

Echo-n ""

Done

For ((jacks 1; iMel -))

Do

For ((Signori; s

Tags: Scripts code examples files facets programming commands encryption learning tutorials scripting results output server mail prompts services colorful content utilization Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL OPPO Reno Apple MariaDB Microsoft