Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

shows current time (12hrs), date, month by instance

set `date`
echo
echo '========================='
echo
echo "Today is: $1"
if [ $3 -eq 1 ]; then
        echo "Date is: $3st"
elif [ $3 -eq 2 ]; then
        echo "Date is: $3nd"
elif [ $3 -eq 3 ]; then
        echo "Date is: $3rd"
else
        echo "Date is: $3th"
fi
echo "Time is: `date "+%r"`"
echo
echo '========================='
echo
echo "Month is of: $2"
echo "Year is: $6"
echo "Timezone is: $5"
echo
echo '========================='
echo
set -x
Comment

PREVIOUS NEXT
Code Example
Shell :: curl download with rate limit 
Shell :: linux between subshell variables 
Shell :: how to find the sha512 windows 10 
Shell :: command displays all the commands ran previously on the terminal 
Shell :: download ubuntu 20 from gdrive 
Shell :: install openvino for ubuntu 20 
Shell :: shell sort visualization 
Shell :: view ip rules linux 
Shell :: erc20 token openzeppelin example github 
Shell :: git switch to specific branch name 
Shell :: pycache delete bash code 
Shell :: rebuild all apps dokku 
Shell :: unit has a bad unit file setting 
Shell :: ubuntu r package install problem 
Shell :: allow ssh connections through windows defender 
Shell :: ssh remove file command 
Shell :: rust cargo build on change 
Shell :: kill process based on username windows 
Shell :: git preview pull 
Shell :: terminal run the last x commands 
Shell :: remove files from git commit before push 
Shell :: figma edge 
Shell :: install brave browser for kali linux 
Shell :: drop-in 
Shell :: debian copy directory 
Shell :: sed remove line 
Shell :: how to chck if i have bluetooth in lunux machine 
Shell :: metasploit msf commands kali linux 
Shell :: how to turn function lock of calibur v2 
Shell :: can i connect ubuntu laptop and desktop for file transfer 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =