Search Results

Search: Posts Made By: ZINGARO
Forum: HP-UX 07-23-2008
7,401
Posted By ZINGARO
i can use the shell script command ( ksh ) ...
i can use the shell script command ( ksh )

input :file excel

output : file csv ( or text file ) with , or another char with delimiter


i process the output file with awk ( no problem...
Forum: HP-UX 07-23-2008
7,401
Posted By ZINGARO
sorry , i change the colums (fields ) delimiter...
sorry , i change the colums (fields ) delimiter (default <space > in txt export )

i want another delimiter ( another caracter ) in output files export .
Forum: HP-UX 07-23-2008
7,401
Posted By ZINGARO
Conver Excel file to another format ( text)
I can convert a excel file to another format , for example text type ( TXT) whit anoter caracter from delimiter a rows ???

I can change the default delimiter " | " ( or space ) of cell to...
2,111
Posted By ZINGARO
Return the last echo in remsh !!!!
Hi, I have a question:

the script A run in the HostA call the script B on the HostB:

ex.. ksh:B

.......
........
........ remsh HostB ec........

......
......

the prog.B on the...
1,557
Posted By ZINGARO
Output function into file
I have this shell:

function AAAA {

echo $* > Log1

}

# main

AAA "TEST" > Log2

.....

I not see the same output in the 2 files ; only Log1 result with the strings $*
Log2 is...
Forum: HP-UX 03-11-2008
7,454
Posted By ZINGARO
Return of EXIT status ( $? )
I have the question:

How return the exit code from then assign :

VAR=$(command ) for ex. VAR=$(ls ....)

VAREXIT=$?

echo $VAREXIT

VAREXIT is equal to 0 if the directory exist or not...
3,350
Posted By ZINGARO
i have insert in the fuction the declare : ...
i have insert in the fuction the declare :

#!/usr/bin/sh or /usr/bin/ksh

function WriteLog {

#!/usr/bin/sh

.....
.....
.....

return
}

the shell work correctly and i use in the...
3,350
Posted By ZINGARO
ksh93 in Hp/ux system
ksh93 in Hp/ux system
3,350
Posted By ZINGARO
not work .. I have the same error the...
not work ..

I have the same error

the call WriteLog ""\tCAMPA\t\t CAMPB\tCAMPC""

or WriteLog "\tCAMPA\t\t CAMPB\tCAMPC"
return e error

if write BBB="\tCAMPA\t\t CAMPB\tCAMPC"
...
3,350
Posted By ZINGARO
Function Problem and CoreDump
Hi, i have a question:

i build this function:

function WriteLog {

....
...
print $*
print $* >> FileLog

....
....
}


the function are called with this sintax:

.....
.....
11,798
Posted By ZINGARO
OK. !!! exist a more info or manual to see a...
OK. !!!
exist a more info or manual to see a difference from ksh ???

( i try sobstitute the declare in my shells but the shell return more error in other point !!!!)

i serach with emule...
11,798
Posted By ZINGARO
i cut the page.. read this
Compound Variables
The Korn shell also supports compound variables, which are similar to structures or records in other
languages, that is a meta-datatype which is a group of related values, each...
11,798
Posted By ZINGARO
compound variable in korn shell
in a text " Korn Shell Unix programming Manual 3° Edition"

i have found this sintax to declare a compoud variable:

variable=(
[datetype] fild1 [=value]
[datetype] fild1 [=value]
)...
2,171
Posted By ZINGARO
compound variable in korn shell
in a text " Korn Shell Unix programming Manual 3° Edition"

i have found this sintax to declare a compoud variable:

variable=(
[datetype] fild1 [=value]
1,637
Posted By ZINGARO
i need a modify: i search the first N...
i need a modify:

i search the first N caracter (5 or 6 ) after @= and before the caracter --> ,

ex:

xxxxxx xxxxxx xxxxx @= XXXXX,xxxx xxxx -------> extract XXXXX
xxxx xxxxx ...
4,716
Posted By ZINGARO
Generate Checksum control
I find a idea to generate a Chcksum code to put in a table

the file/table are only string (char and number )

ex:

file original:

value description
univocal ...
1,637
Posted By ZINGARO
Extrac String
How I extract a string from another String ????

I have a string LINE="xxxxxxxxxxx xxxxxxx xxxxxx @=XXXXXXXXXXXX xxxxxxxxxxx"
(the space in to the string are variable)

need extract the fisrt...
2,940
Posted By ZINGARO
how you declare a collection of array ??? ...
how you declare a collection of array ???

why in you procedure not use the sintax Array[x,y] but eval array${narray}[$element]=\$line ???


very taks
2,171
Posted By ZINGARO
the operato < for redirect output "inverse"....
see this

cat < Files
return the cointent of Files

but

cat files

return the same result


WHI???


this command

lp -f """PRINTER" < cat files

not print the...
2,940
Posted By ZINGARO
Remember !!!! I use Posix shell (ksh) ...
Remember !!!!

I use Posix shell (ksh)

tanks
2,940
Posted By ZINGARO
Array and Selection
I have a question:

Y X
Tabel a is a array multidimensional --> a(1024,20)

I load in to array a Text from 6000 row where:
in a(1,1)...
36,459
Posted By ZINGARO
Global Variable in awk...
i think.....

it's possible use a variable out a awk in the awk ???

ex.

A=20071225

awk '{ print "the value is" $a }'
OR
awk '{ print "........"; c=10; print $c ; c=$A ; print $A}'
...
1,256
Posted By ZINGARO
O.K. i rewrite the line , it's correct !!!!!
O.K. i rewrite the line , it's correct !!!!!
1,256
Posted By ZINGARO
Problem with AWK
I have a question:
see this:
var2="sample string"
var1=$( echo var2 | awk '{ print $1}' )
print $var1

this return --> sample

but this:

var3[01]=$( echo var2 | awk '{ print $1}' )
print...
15,147
Posted By ZINGARO
where is the code ???
time myscript.sh ????

where is the code ???

i search a ssh or ksh script Timesub(time1 time2 ) which return time1-time2

(two string :"hh.mm.ss")

can you help me ??
Showing results 1 to 25 of 36

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