Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

shell script tutorial

#!/bin/sh

# Author : Zara Ali
# Copyright (c) Tutorialspoint.com
# Script follows here:

echo "What is your name?"
read PERSON
echo "Hello, $PERSON"
Comment

bash scripting tutorial

#!/bin/bash
 
echo -e "Hi, please type the word: c "
read  word
echo "The word you entered is: $word"
echo -e "Can you please enter two words? "
read word1 word2
echo "Here is your input: "$word1" "$word2""
echo -e "How do you feel about bash scripting? "
# read command now stores a reply into the default build-in variable $REPLY
read
echo "You said $REPLY, I'm glad to hear that! "
echo -e "What are your favorite colours ? "
# -a makes read command to read into an array
read -a colours
echo "My favorite colours are also ${colours[0]}, ${colours[1]} and ${colours[2]}:-)"
Comment

PREVIOUS NEXT
Code Example
Shell :: how to add image in readme 
Shell :: git pull a specific sha 
Shell :: Git - create new branch and switch to that new branch 
Shell :: how to check wsl version 
Shell :: Fetch submodules recursively 
Shell :: git clean local branches 
Shell :: how to get all branches from gitlab repository 
Shell :: bash exit code 
Shell :: ssh permissions are too open 
Shell :: env file firebase 
Shell :: how to deploy heroku app 
Shell :: WSL with VPN 
Shell :: unexpected inconsistency run fsck manually 
Shell :: github.com api 
Shell :: git merge branch into another branch 
Shell :: bash here document example 
Shell :: creat a new repository 
Shell :: git flow release 
Shell :: cut delimiter spaces 
Shell :: install gtk python 
Shell :: expo cli 
Shell :: uninstall R 
Shell :: Add OMV repository ro Debian 
Shell :: ubuntu cannot access settings 
Shell :: texlive 2019 in ubuntu 18.4 
Shell :: files 666 folders 755 
Shell :: Display full date and time in history command 
Shell :: bash grep 
Shell :: awk pdb format 
Shell :: format flash drive linux 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =