Article 5GXMD script to run monthly

script to run monthly

by
rvsr
from LinuxQuestions.org on (#5GXMD)
Hi all,

Firstly I am new to bash script.
I want to run this script every month (which is inside the forloop) and if should execute only execute when the $b matches $a.I want this count to be executed in both cases
I am not sure if this is the right way to do it. can you please suggest.

Code:b=$(date +"%Y%m%d)
a=$(date +"%Y1030)
count = 0
for VARIABLE in file1
do
command1 on $VARIABLE
command2
if [ $b == $a ]
then
command 1
command 2
count = count +1
fi;
donelatest?d=yIl2AUoC8zA latest?i=4emICSxnCts:WITVv9ctd9E:F7zBnMy latest?i=4emICSxnCts:WITVv9ctd9E:V_sGLiP latest?d=qj6IDK7rITs latest?i=4emICSxnCts:WITVv9ctd9E:gIN9vFw4emICSxnCts
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments