06-19-2007
still fighting. I'll really appreciate any help.
thank you,
M.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to figure out the numeric representation of the previous month (in an automated monthly-running script) so that I may append it to a filename. I have tried statements such as variable=`date +%m -1` (and several variations) but with no success. I have also tried simply assigning the value... (3 Replies)
Discussion started by: mharley
3 Replies
2. Linux
Hi all,
I need the date subtraction fuctionality using shell commands.
For example:
date1:Wed Apr 5 08:35:21 IST 2006
date2:Tue Apr 4 10:35:44 IST 2006
I need the date subtraction result like " 22 hours 23 seconds".
Please guide me to complete this task.
Can you please help me ASAP.
... (3 Replies)
Discussion started by: uday123
3 Replies
3. Shell Programming and Scripting
hi i have file 1 as follows:
6
7
8
9
10
i have file 2 as follows:
5
5
5
5
5
i want file 3 as follows: (4 Replies)
Discussion started by: npatwardhan
4 Replies
4. Shell Programming and Scripting
hi,
i set up a script on my server to do a particular task once files from an external system are ftpd in the format compaq_20100110 (YYDDMM). Interestingly, the source of ftp is sending the files in the format e.g 20100109 i.e. previous date and for some reason this fails.kindly see my script... (2 Replies)
Discussion started by: bigtejus
2 Replies
5. Shell Programming and Scripting
Hallo all i am trying to execute this script ...............
But this is throwing the error......
use of uninitialized value in subtraction in at icd_convert.pl line 156
use of uninitialized value in subtraction in at icd_convert.pl line 157
use of uninitialized value in subtraction in at... (1 Reply)
Discussion started by: suvenduperl
1 Replies
6. Shell Programming and Scripting
HI gurus...
I have a PERL file that help me extract the date and time
of the file.
The format of this is: yyyymmddhhmmss.
Example:
20100430070935 (April 30 2010 07:09:35)
How can i subtract the acquired time from system's time..??
The answer... (6 Replies)
Discussion started by: bankimmehta
6 Replies
7. Shell Programming and Scripting
Hi
#!/bin/sh
month=`date +%m`
year=`date +%Y`
echo $month
a=02
# Retaining Data for Current and Previous Month
lmonth=`expr $month - $a`
if test "$lmonth" = "0"
then
lmonth=12
year=`expr $year - 1`
fi
echo $year
echo $lmonth
The output is (3 Replies)
Discussion started by: Abhayman
3 Replies
8. Shell Programming and Scripting
Hello all .
I have two arrays.
${ARRAY_MOUNT_POINT_CAPACITY}
${ARRAY_MOUNT_POINT_CAPACITY}.
Whats the synatx of subtracting their values , placing them in variable V1 and then echoeing it ???
Ive tried expr and let ...gives me ./test_code.sh: difference: bad number (3 Replies)
Discussion started by: Junaid Subhani
3 Replies
9. Shell Programming and Scripting
I have dates as follows in a file
20121029135649
20121029135721
20121030091540
20121030093420
20121030094340
20121030095427
20121030095856
20121030100104
20121030100251
All these dates are in sorted order. I need to find out the difference between the dates as follows
2nd row... (6 Replies)
Discussion started by: meetsriharsha
6 Replies
10. UNIX for Dummies Questions & Answers
Hello All,
I am a newbie to unix shell scripting and need to write a script that displays the difference between two variables that stores date value.
For example,
F1=`ls -ltr file1* | tail -1 |tr -s ' ' |cut -d' ' -f6,7,8`
F2=`ls -ltr file2* | tail -1 |tr -s ' ' |cut -d' ' -f6,7,8`
F1... (3 Replies)
Discussion started by: priyaa2010
3 Replies
LEARN ABOUT DEBIAN
cultivation
cultivation(6) Games cultivation(6)
NAME
cultivation - game about the interactions within a gardening community
SYNOPSIS
cultivation
DESCRIPTION
Cultivation is a video game written by Jason Rohrer about a community of gardeners growing food for themselves in a shared space.
Cultivation is quite different from most other games. It is a social simulation, and the primary form of conflict is over land and plant
resources---there is no shooting, but there are plenty of angry looks. It is also an evolution simulation. Within the world of Cultivation,
you can explore a virtually infinite spectrum of different plant and gardener varieties.
All of the graphics, sounds, melodies,and other content in Cultivation are 100% procedurally generated at playtime. In other words, there
are no hand-painted texture maps---instead, each object has a uniquely "grown" appearance. Every time you play, Cultivation generates fresh
visuals, music, and behaviors.
Cultivation is certainly an unusual game, but that doesn't necessarily mean it's good. From experience, some people absolutely love it,
while others absolutely hate it. It's intended to be an "art game," after all, and mixed reactions go with that territory.
When two sides are fighting, they often ruin the commons for everyone. The game is a metaphor about that kind of situation. Too much fight-
ing destroys the island for everyone.
USAGE
Cultivation explores the social interactions within a gardening community. You lead one family of gardeners, starting with a single indi-
vidual, and wise choices can keep your genetic line from extinction. While breeding plants, eating, and mating, your actions impact your
neighbors, and the social balance sways between conflict and compromise.
Cultivation features dynamic graphics that are procedurally-generated using genetic representations and cross-breeding. In other words,
game objects are "grown" in real-time instead of being hand-painted or hard-coded. Each plant and gardener in the game is unique in terms
of both its appearance and behavior. The game includes an extensive in-game tutorial.
In Cultivation, the game system teeters on the verge of uncontrolled conflict, and the player can make choices within this system that
affect the balance. Perhaps it is impossible to win the game by acting only out of self-interest, but likewise, it may be impossible to win
acting only out of altruism (I say "perhaps" here because, even as the designer of the system, I have only explored a tiny fraction of the
game's possible permutations). Players can directly see the results of the choices that they make.
In the initial release of Cultivation, neighbors would respond to encroachment with both counter-encroachment (claiming some of your plants
as their own) and social scorn (refusing to mate with you). With only these mechanics in place, fighting just didn't feel serious
enough---a fight could continue indefinitely without any real consequences, since after two plots overlapped completely, no further revenge
was possible for either side. I had to think of a more serious act to crown the peak of an escalating fight. Poisoning, which is now a key
mechanic in Cultivation, fit perfectly. This mechanic allows an angry neighbor to poison a plant. Poison not only kills the target plant,
but it also renders the ground around the plant forever unusable.
SEE ALSO
You can find more information at http://cultivation.sourceforge.net/
June 2007 cultivation(6)