Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

demp

# Hello World Program in Bash Shell

echo "Hello World!"
vi demo.c

Execute Bash Shell Online

# Hello World Program in Bash Shell

#!/bin/sh
echo "------ Router INFO ------"
curl https://ip.jsontest.com/
echo "------ Statica Configuration -------"
export STATICA_URL="socks5://statica4166:[email protected]:1080"
export STATICA_MASK="35.185.59.164/32"

chmod 600 tools/database/client-key.pem
chmod +x tools/statica/bin/statica

echo "------ Create database tables ------"
tools/statica/bin/statica python manage.py migrate --noinput

echo "------ create default admin user ------"
echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', '[email protected]', 'Password#105')" | tools/statica/bin/statica python manage.py shell

echo "------ starting Celery  ------"
tools/statica/bin/statica python manage.py celeryd -B -f celeryd-$(date +%y)-$(date +%m)-$(date +%d).log &

echo "------ starting gunicorn  ------"
tools/statica/bin/statica bash -c "gunicorn ilhaus.wsgi --workers 2"

1245

# Hello World Program in Bash Shell

echo "Hello World!"

BashScript1

yum list 

Execute Bash Shell Online

read x
echo "Enter your first name "
echo $x
fi

Execute Bash Shell Online

echo "file exists :"                                                                          
read x                                                                                       
if test -f $x                                                                                      
then                                                                                                      
        echo "this is a file valid"                                                                             
else                                                                                                      
        echo "file not valid"                                                                      
fi 

echo "12345678901234567890" | wc

# Hello World Program in Bash Shell

echo "Hello World!"

echo "12345678901234567890" | wc

test

#!/bin/bash
# regexp.bash

while read -r line; do
    if [[ $line =~ .* ]]
    then
        echo "${BASH_REMATCH[0]}"
        echo "${BASH_REMATCH[1]}"
        echo "${BASH_REMATCH[2]}"
        echo "------------------------"
    fi
done

Execute Bash Shell Online

# Hello World Program in Bash Shell

echo "Hello World!" 

temp


Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.