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

example bash script

ipconfig /all
ping google.com
tracert google.com
PAUSE
Comment

linux bash scripts tutorial

$ which bash
Comment

linux bash scripts tutorial

#!/bin/bashtar -czf myhome_directory.tar.gz /home/linuxconfig
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 :: git fetch only pull master 
Shell :: fatal error: jansson.h: Aucun fichier ou dossier de ce type 
Shell :: linux cut all but last field 
Shell :: error: server terminated early with status 127 
Shell :: audiokit pod 
Shell :: adavanced 
Shell :: ssh into rpi 0 
Shell :: shell loop tuple 
Shell :: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0) 
Shell :: instal LSB pakage in ubuntu 
Shell :: run command and Exit cts 
Shell :: git certificate verify locations 
Shell :: iperf test example 
Shell :: pipeline in shell 
Shell :: gnome-desktop-item-edit install for kali 
Shell :: cheat.sh github 
Shell :: Convert line-endings for whole directory tree 
Shell :: snap bin location 
Shell :: imagemagic make blank png 
Shell :: firebase hosting deploy with message 
Shell :: mysql cannot change directory to /nonexistent 
Shell :: Autobackup if directory size is more than 25 MB bash 
Shell :: upgrade appwrite 
Shell :: fstab path 
Shell :: adb shell command to rotate screen 
Shell :: error: failed to init transaction 
Shell :: antlr example java 
Shell :: how to install xampp in ubuntu 20.04 
Shell :: install adoptium openjdk ubuntu 
Shell :: restore gpg key 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =