04-06-2005
Hi ZB,
I am using ksh...and i have checked the encrypted link...there are several functions used..which I don't want to use..
$ uname -a
SunOS crddbdevl 5.6 Generic_105181-39 sun4u sparc SUNW,Ultra-Enterprise
$ date
Wed Apr 6 03:19:46 EDT 2005
and its ksh for sure....
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In an operation, I have output like 22562K I want to manipulate this and want to perform some mathematical operations on that, any idea how can I get the digit no? (2 Replies)
Discussion started by: csaha
2 Replies
2. Shell Programming and Scripting
Hi everybody:
I have a problem. I have a output files which have this pattern:
number1
--space
block1a - 7rows/10columns/65elements
--space
block1b - 7rows/10columns/65elements
--space
block1c - 7rows/10columns/65elements
--space
number2
--space
block2a - 7rows/10columns/65elements... (0 Replies)
Discussion started by: tonet
0 Replies
3. Shell Programming and Scripting
dear all,
on solaris10 for x86 i am trying to modify the creation date of a postscript file with sed in a csh script. sed is driving me crazy though...i think due to the spaces in the string i am trying to substitute??
part of the postscript file:
%!PS-Adobe-3.0... (3 Replies)
Discussion started by: lada niva
3 Replies
4. Shell Programming and Scripting
Hi
as output i get a directory (i don't know its name) with many files inside.
Now i need to find the directory name and change it as i need.
I can found a directory name with this command:
find -maxdepth 1 -type d | grep out
Now i'd like to assign it to a variable and change it. ... (4 Replies)
Discussion started by: Dedalus
4 Replies
5. AIX
Hi,
I need to convert the below string in 'yyyymmdd' format.
e.g.,
24 June 2011 -> 20110624
Please help !! (4 Replies)
Discussion started by: ruby
4 Replies
6. Solaris
I have script where in i issue a command to get back 6 month earlier date.
below command works on all linux distribution.
# date +%Y-%m-%d --date="2012-03-31 - 183 days ago"
2011-09-30
Is there any solaris equivalent command to do the same? (1 Reply)
Discussion started by: pinga123
1 Replies
7. Shell Programming and Scripting
Hi Guys,
I have a file that lists patches along with other information.
The patches are listed in two different formats.
One format lists the latest patch, date , installed patch
Latest Patch Date IN
148412-02 13-Sep-2012 -- X X SunOS 5.10: nss_dns patch
126206-10 ... (5 Replies)
Discussion started by: Tornado
5 Replies
8. Shell Programming and Scripting
Hi
i want to manipulate my data to convert row to column
name
600
Slno vlan
1 600
2 609
3 700
name
700
Slno vlan
1 600
2 609
3 700 (8 Replies)
Discussion started by: nith_anandan
8 Replies
9. Shell Programming and Scripting
Hello,
How do i manipulate .csv file to this format?
Thank you very much.
Source:
john,5
marco,7
john,4
paul,3
marco,8
Output:
john,9
marco,15 (5 Replies)
Discussion started by: tara123
5 Replies
10. Shell Programming and Scripting
Good morning everyone,
I'm currently trying to convert an environment variable into a string and then attach it at the end of a command and launch it.
I have the following right now, but it's very ugly:
AMI_TAGS="env=test,country=XX,city=blah,galaxy=blahblah"
aws ec2 create-tags... (8 Replies)
Discussion started by: da1
8 Replies
LEARN ABOUT PHP
gregoriantojd
GREGORIANTOJD(3) 1 GREGORIANTOJD(3)
gregoriantojd - Converts a Gregorian date to Julian Day Count
SYNOPSIS
int gregoriantojd (int $month, int $day, int $year)
DESCRIPTION
Valid Range for Gregorian Calendar 4714 B.C. to 9999 A.D.
Although this function can handle dates all the way back to 4714 B.C., such use may not be meaningful. The Gregorian calendar was not
instituted until October 15, 1582 (or October 5, 1582 in the Julian calendar). Some countries did not accept it until much later. For exam-
ple, Britain converted in 1752, The USSR in 1918 and Greece in 1923. Most European countries used the Julian calendar prior to the Grego-
rian.
PARAMETERS
o $month
- The month as a number from 1 (for January) to 12 (for December)
o $day
- The day as a number from 1 to 31
o $year
- The year as a number between -4714 and 9999
RETURN VALUES
The julian day for the given gregorian date as an integer.
EXAMPLES
Example #1
Calendar functions
<?php
$jd = GregorianToJD(10, 11, 1970);
echo "$jd
";
$gregorian = JDToGregorian($jd);
echo "$gregorian
";
?>
SEE ALSO
jdtogregorian(3), cal_to_jd(3).
PHP Documentation Group GREGORIANTOJD(3)