Search Results

Search: Posts Made By: Cecile
Forum: Solaris 01-29-2007
5,143
Posted By Cecile
Zazzybob !! pleaaaaaaase I used the awk to...
Zazzybob !! pleaaaaaaase

I used the awk to sum my file.

it works for "little" sums, but for one file I should have :

25 109 979 252.36

and I have the following result :

9,18618e+08

...
Forum: Solaris 01-29-2007
5,143
Posted By Cecile
Thank you , in fact this scripts works : ...
Thank you ,

in fact this scripts works :

-------------------------------------
export Valeur=0
export ValeurTotale=0

while read Valeur
do
ValeurTotale=`expr $ValeurTotale + $Valeur`...
Forum: Solaris 01-29-2007
5,143
Posted By Cecile
Sum on Sun unix
Hello,

I would like to process a sum on a file :
for exemple :

4
5
3

Sum is 12

I tried with the "+" but it doesn't seems to work on the sun or maybe I use a wrong syntax, my script is...
2,899
Posted By Cecile
pb with script execution
Thank you for your answer.

I understand a little bit more.

If a call with the dot I stay in the parent shell ?
In fact I don't really execute the script but I read it??
Do I execute another...
2,899
Posted By Cecile
pb with script execution
Hello,

Can somebody tell me the differnce between a call of a ksh with the dot :

>. script.ksh

and the call without the dot:

>script.ksh

In my script I have writen a test for the...
Forum: AIX 09-12-2006
3,719
Posted By Cecile
Pb with script execution and variables
Hello,

Can somebody tell me the differnce between a call of a ksh with the dot :

>. script.ksh

and the call without the dot:

>script.ksh

In my script I have writen a test for the...
10,341
Posted By Cecile
I forgot!!!
Another question on the format() function

how does it come that the test :
[[ $yr > "30" ]]

works, but "30" is alphanumeric not numeric

I think tests on alphanumeric are : =, !=

and...
10,341
Posted By Cecile
date format conversion
Thank you for your answers,

I manage it like that :

#!/bin/ksh
export a

format ()
{
yr=`expr substr $1 1 2`
month=`expr substr $1 5 2`
day=`expr substr $1 3 2`
...
10,341
Posted By Cecile
date format conversion
I can have either :

070829 --> I want 2007-08-29
890829 --> 1989-08-29
10,341
Posted By Cecile
Date format conversion function
Hello,

does somebody knows about a function that would convert a date like:

YYMMDD into a date like YYYY-MM-DD ?

Thank you for your ideas

:)
6,758
Posted By Cecile
How to make a substraction of dates
Sorry, sorry

So, I write my question again :

How can I manage to substract 2 dates with a script shell ?

The date format is :
DD/MM/YYYY HH(24):MI:SS


Is there a simple solution or...
6,758
Posted By Cecile
Comment faire une soustraction de date?
Bonjour,

Comment faire une soustraction de dates en shell ??????

:rolleyes:

j'ai 2 dates de la forme : DD/MM/YYYY HH:MM/SS

que j'aimerais soustraire, existe-t-il un format julian qui...
Showing results 1 to 12 of 12

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