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

Sandy

# Hello World Program in Bash Shell

echo "Hello World!"
pwd

fdasfa

for file in `/path/*_aa.fasta.aln; do cut -f 1 -d "|" ${file} > ${file}.1; done`

Execute Bash Shell Online

# Hello World Program in Bash Shell
if [ "$#" -ne 3 ]; then
  echo "TOO FEW ARGUMENTS" 
  exit 1
fi
a=$1
b=$2
c=$3
if [ $a -gt $b ]; then
    if [ $a -gt $c ]; then
        echo "$a is the Biggest Number"
    fi
elif [ $b -gt $c ]; then
    if [ $b -gt $a ] ; then
        echo "$b is the Biggest Number"
    fi
else
    echo "$c is the Biggest Number"
fi

Pipeline

echo "bla bla bla bla" | grep -o 'Failed'

if [ $? -eq 1 ]
then
    echo "SUCCESS"
else
    echo "ERROR"
fi

Execute Bash Shell Online

# Hello World Program in Bash Shell

echo "Hello Jacky"

echo "hello kev"

sm-test

oldVerNum=101
newVerNum=102
oldVer="1.0.1"
newVer="1.0.2"

#--------------------------------------------
if [[ "$oldVer" == "1.0.2" ]]; then
    echo "Test 1 Equal"
else
    echo "Test 1 Not Equal"
fi
#--------------------------------------------
if [[ "$newVer" == "1.0.2" ]]; then
    echo "Test 2 Equal"
else
    echo "Test 2 Not Equal"
fi
#--------------------------------------------
if [[ oldVerNum -eq 102 ]]; then
    echo "Test 3 Equal"
else
    echo "Test 3 Not Equal"
fi
#--------------------------------------------
if [[ newVerNum -eq 102 ]]; then
    echo "Test 4 Equal"
else
    echo "Test 4 Not Equal"
fi
#--------------------------------------------
if [[ "$oldVer" == "1.0.2" || newVerNum -eq 102 ]]; then
    echo "Test 5 Equal"
else
    echo "Test 5 Not Equal"
fi
#--------------------------------------------
if [[ "$oldVer" == "1.0.2" && newVerNum -eq 102 ]]; then
    echo "Test 6 Equal"
else
    echo "Test 6 Not Equal"
fi

Execute Bash Shell Online

echo '2019-01-29 05:00:12 RUN Stress Current Exposure
2019-01-29 05:00:12 Created lock file:/var/log/CR2/script/running_ces_agatha.lock
2019-01-29 05:00:12 Call cleanUp begin
2019-01-29 05:00:12 Call cleanUp end
2019-01-29 05:00:12 Start [Prepare Current Exposure ]
2019-01-29 05:00:12 End [Prepare Current Exposure ]
2019-01-29 05:00:12 Transfer crossDeskBond file from FRE delivery folder
2019-01-29 05:00:12 Transfer Bond Defaults files from FRE delivery folder end
2019-01-29 05:00:12 Transfer Bond Defaults files from Trarisk
2019-01-29 05:00:20 Transfer Bond Defaults files from Trarisk end
2019-01-29 05:00:20 Call Translation Layer begin
2019-01-29 05:00:20     RUN TRANSLATION LAYER WITH: AOD: -aod 20190128 -task 900 -extra_jvm_args -Dapp.bateauge.date=20190129_050020 -extra_jvm_args -Dapp.bateauge.task=900
PID_current:28266#
2019-01-29 05:00:30     RUN TRANSLATION LAYER WITH: AOD: -aod 20190128 -task 902 -extra_jvm_args -Dapp.bateauge.date=20190129_050020 -extra_jvm_args -Dapp.bateauge.task=902
PID_current:28297#
2019-01-29 05:00:40     RUN TRANSLATION LAYER WITH: AOD: -aod 20190128 -task 920 -extra_jvm_args -Dapp.bateauge.date=20190129_050020 -extra_jvm_args -Dapp.bateauge.task=920
PID_current:28313#
2019-01-29 05:00:50     RUN TRANSLATION LAYER WITH: AOD: -aod 20190128 -task 922 -extra_jvm_args -Dapp.bateauge.date=20190129_050020 -extra_jvm_args -Dapp.bateauge.task=922
PID_current:28332#
In Waiting to finish the following Translation-Layer processes:28266 28297 28313 28332
2019-01-29 05:01:41 Call Translation Layer end
2019-01-29 05:01:41 Call Check Input File begin
2019-01-29 05:01:41 Call Check Input File end
2019-01-29 05:01:41 Call Aggregation with 8 PARALLEL RUNs. START' > file1.txt
 
 
 cat file1.txt
 
 grep -q Transfer file1.txt
 n=$?
 if [ $n -eq 0 ]
then
echo "succes" $n
fi
 

inline sqlplus

TIMESTAMP=Jan12

MYSQLFILE="my_sql_file_${TIMESTAMP}.sql"

cat << EOF
@$MYSQLFILE
exit
EOF

bash-hello-world

# Hello World Program in Bash Shell

echo "Hello World!"

Execute Bash Shell Online

# Hello World Program in Bash Shell
#!/bin/bash
echo "Hello World!"

Advertisements
Loading...

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