Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

current year bash

date +"%Y"
date +"%y"
 
## Store to a shell variable ##
mydate=$(date +'%Y')
myyear=`date +'%Y'`
echo "Year = $mydate"
echo "Year = $myyear"
Comment

PREVIOUS NEXT
Code Example
Shell :: pip install upgrade all 
Shell :: jupyter uninstall 
Shell :: ubuntu server set timezone 
Shell :: get public ssh key 
Shell :: bash script print array elements index and value 
Shell :: Creating an environment from an environment.yml file 
Shell :: install godot ubuntu 
Shell :: how to create tar in unix 
Shell :: react native Could not find "Podfile.lock" at 
Shell :: port 5000 already in use 
Shell :: To install mailutils to send mail from linux centos terminal 
Shell :: service supervisor restart 
Shell :: linux resize image 
Shell :: start ubuntu hotspot from terminal 
Shell :: ubuntu server virtualbox check if guest additions installed 
Shell :: how to uninstall npm packages 
Shell :: stop adb device 
Shell :: install snapd ubuntu 
Shell :: how to restart docker linux 
Shell :: ubuntu check cuda version 
Shell :: bash replace substring 
Shell :: rsync port ssh 
Shell :: django runserver no reload 
Shell :: how to extract tar.gz file in colab 
Shell :: autopep8 command command 
Shell :: see if urdf is valid 
Shell :: mongodb compass community linux 
Shell :: ffmpeg shrink video size 
Shell :: how install lxd on lxd ubuntu 18.04 
Shell :: git log --graph 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =