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

Execute Bash Shell Online

#!bin/bash

touch ttk_report.csv

if [ -e ttk_report.csv ] 
then
    echo "Exist a ttk_report.csv => backup........."
    if [ -d "BackUp" ]
    then
        da=`date '+%Y-%m-%d_%H:%M:%S'`
        cp ttk_report.csv BackUp/ttk_report_$da.csv
    else
        mkdir BackUp
        da=`date '+%Y-%m-%d_%H:%M:%S'`
        cp ttk_report.csv BackUp/ttk_report_$da.csv
    fi
else
    touch ttk_report.csv
fi

ls BackUp/
cd BackUp

Advertisements
Loading...

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