Search Results

Search: Posts Made By: sonja
6,786
Posted By prarat
Could you please try this a=27 date=` date...
Could you please try this

a=27
date=` date +%d`
month=` date +%m`
if [ $date -eq $a ]
then
if [ $month -eq 03 -o $month -eq 06 -o $month -eq 09 -o $month -eq 12 ]
then
echo 'Execute event...
6,786
Posted By itkamaraj
TodayDate=$(date +%d) MonthNum=$(date +%b) if...
TodayDate=$(date +%d)
MonthNum=$(date +%b)
if [ "$TodayDate" -eq "26" ]
then
case $MonthNum in
Mar,Jun,Sep,Dec)
echo "Event 2";;
*) echo "Event 1";;
esac
fi
2,348
Posted By jim mcnamara
./ means look in the current directory. So the...
./ means look in the current directory. So the answer is yes, your example is correct
Forum: UNIX and Linux Applications 07-09-2010
2,650
Posted By zaxxon
This tool is about clicking things together, not...
This tool is about clicking things together, not writing any scripts. I will move this to some application sub forum.

Also ask your detailed question maybe instead of just asking if someone knows...
2,213
Posted By amitranjansahu
Refer Unix is a Four Letter Word: Unix...
Refer

Unix is a Four Letter Word: Unix ---&gt Wildcards (http://unix.t-a-y-l-o-r.com/USwild.html)
3,602
Posted By KenJackson
You have to decide what format you want for the...
You have to decide what format you want for the timestamp and/or datestamp.

%Y is the 4-digit date,
%H is the (24-hour) hour, etc.

You can see all the format options by executing man date and...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 02:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy