03-23-2011
10 More Discussions You Might Find Interesting
1. Programming
Hi
One of my vendor based tool is giving date in
no. of days since 1900-01-01.
So, I want to display in CCYYMMDD format.
For ex:- Vendor based tool is giving as 38790 days since 1900-01-01
corresponding to12/sep/2006
Does anybody has the... (1 Reply)
Discussion started by: axes
1 Replies
2. Shell Programming and Scripting
Hi experts,
Can you please help me in calculating the future date using unix shell scripting..
for example
lets say todays date is 29-sep-2008
i wanna calculate the date after 365 days...
hence the date must be 29-sep-2009..
Quick response is appreciable.
thanks in... (2 Replies)
Discussion started by: subhendu81
2 Replies
3. Shell Programming and Scripting
Hello all. I'm writing a script that should work with some files being sure that them were created a concrete day (0, 1, 2 or 3 days before script execution). This task should be done under Solaris and Linux hosts with different versions (Solaris 8, 9 and 10, Suse 9 and 10) so I'm trying to make... (3 Replies)
Discussion started by: nefeli
3 Replies
4. Shell Programming and Scripting
hello guys,
I had been to many forums and many topics in this site as well for my question but did not get any solution.
My question is how i can get y'day date with time stamp
today is 20100729103819 and i am looking for output as 20100728103819.
in simple words as we do in oracle sysdate-1... (4 Replies)
Discussion started by: lokaish23
4 Replies
5. Shell Programming and Scripting
I have to run a shell , only if file_a.txt is updated correctly before 1hr.
that is,
file_a.txt
2011_09_21__14:10:20 --> any format..
And
the shell can be like,
if ; then
Run some shell
update file_a.txt with (date now)
fi
how to do this ? (6 Replies)
Discussion started by: linuxadmin
6 Replies
6. Shell Programming and Scripting
Hello eveyone, I am tasked to write an (n)awk script to calculate the days between dates. Now before anyone chastizes me on how many forums there are on date calculation, I have no seen one that takes into account the Julian calender as well. As most know, September of 1752 is when we (the US)... (2 Replies)
Discussion started by: csharp100
2 Replies
7. Shell Programming and Scripting
Hi
I have this date 11:30:02-31.11.12
How to calculate date between this date and now?
I like it printed like this:
31D 2H 1M
if possible. (6 Replies)
Discussion started by: Jotne
6 Replies
8. Shell Programming and Scripting
Hi,
I'm looking for a way to do a simple math calc during a shell script as a means of logging how long a particular task takes.
For example...
STARTTIME=whenever this script starts
./path/to/command.sh >>logfile.log
TOTALTIME=<time at this stage of the script after above command... (7 Replies)
Discussion started by: nbsparks
7 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I need to calculate the date for monday to friday.
Say today is 10.oct.2014 then I need to calculate the date as 09.oct.2014.
If today is 13.oct.2014 then I need to calculate the date as 10.oct.2014.
If its 03.Nov.2014 then date calculated must be 31.oct.2014.
Please help in in... (2 Replies)
Discussion started by: abhi_123
2 Replies
10. UNIX for Dummies Questions & Answers
I want to automate change in 'from yyyy/mm/dd to yyyy/mm/dd' every month in a unix program.
For example in this month 'from yyyy/mm/dd to yyyy/mm/dd' is 'from 2014/10/01 to 2014/11/01' next month it should be 'from 2014/11/01 to 2014/12/01'
Can any one provide me the code for the above... (2 Replies)
Discussion started by: srinivas kasett
2 Replies
gtans(6) Games Manual gtans(6)
NAME
gtans - Tangram game for X
SYNOPSIS
gtans [no options]
DESCRIPTION
Gtans is a tangram game that runs in X. Tangram is a kind of puzzle game where the player has to arrange a set of pieces to match a given
shape.
OPTIONS
No command-line options
Use the graphical interface to customize the program. See below.
USAGE
move the pieces (known as tans) until they match the figure drawn on the right window. You must always use the seven tans and they should
not be laid on top of one another.
To move a tan, click and drag it with left mouse button, for rotation click AROUND it. You can flip the selected tan by right-clicking.
This is usefull for the parallelogram tan (all positions can not be reached by rotating only).
If you are a beginner to Tangram you should try the first 10 figures. The other ones are not sorted, some of them are very difficult (to
my taste).
When a figure has been solved the background color of the silhouette area changes. The solved figures are remembered by saving a status
file in the user's directory (~/.gtans/afile.figures.status for a figure file called afile.figures)
Show a tan This button shows the position of a tan. Each further click will display an other tan.
Show outline Draw the figure in the main area. This makes the game much easier.
Preferences Most of this menu's options allow you to change the colors used by the game. For the main area you may choose textures (pixmap
files) instead of colors. Some sample files are supplied (I can't remember where I found them) but as the complete pathname is saved in the
config file you can choose a file located anywhere (for example in /usr/share/pixmaps/). On a 8 bits display the colors may not be exactly
what you want (GTK tries to find the best matching color).
Preferences/Tans size/Increase Makes the tans 5 % bigger relatively to the game area. If you resize the window the tans size will be
scaled.
Preferences/Tans size/Decrease Makes the tans 4.76 % smaller
Preferences/Accuracy Changes the precision of the comparison between the tans position and the solution. A lower accuracy makes the game
more easy.
Preferences/Rotation Step by step allows only rotation by increment of 11.5 degrees. Continuous rotation makes the game more difficult and
you probably shouldn't use it unless you really dislike step by step rotation.
Preferences/Figures file Allows you to choose another figures file.
Preferences/Save config Save a config file in the user's home directory.
Misc/Clear figure status Set the current figure as unsolved.
Misc/Clear all figures status Set all the loaded figures (i.e. from the current figure file) as unsolved.
FILES
~/.gtans/.gtansrc Configuration options for gtans. All of these options can be set from the interface, there should be no
need to edit this file.
~/.gtans/somename.figures.status Status files (for each figures file the user played with) remenbering which figures where
solved.
SEE ALSO
The gtans homepage at <http://gtans.sourceforge.net/>. Additional information and documentation can also be found in
/usr/share/doc/gtans/ .
AUTHOR
The author of gtans is Philippe Banwarth <bwt@users.sourceforge.net>
February 2000 gtans(6)