Search Results

Search: Posts Made By: danietepa
3,191
Posted By danietepa
?? I dont understand.
?? I dont understand.
3,191
Posted By danietepa
awk and configuration file
Hi,
You can load a configuration file containing variables from within AWK?

Thanks.
2,362
Posted By danietepa
Thanks, other question: You can retrieve...
Thanks,
other question:

You can retrieve a variable from a configfile inside awk?
2,362
Posted By danietepa
Functions AWK
Hi,
I´m using this code:

nawk -F¤ -v campotipo=${CAMPO_TIPO_SEDRA} -v ficherolog=${DIRECTORIO_LOGS_MARINE_SEDRA}/${F_LOG_SEDRA} -v ficheroerroneos=${LOG_SEDRA_ERRONEOS} -v separador=${SEPARADOR}...
1,295
Posted By danietepa
Hi, That's not what I wanted. Once you...
Hi,
That's not what I wanted.
Once you recover the variable with:

. configfile
echo $BTS


How can I save each of the data variables.
a = 53
b = 1
c = 2
...
1,295
Posted By danietepa
Doubts about variables
Hi,
If I have a variable in a configuration file like this:

BTS=53,1-2-3-6
export BTS

As might get each of the variables in this parameter?

"53"
"1"
"2"
....
1,422
Posted By danietepa
Thanks, that was .. Sorry for the dumb mistake.
Thanks, that was ..
Sorry for the dumb mistake.
1,422
Posted By danietepa
awk problem
Hi, I obtain a error to execute this code:
nawk -F¤ -v campotipo=${CAMPO_TIPO_SEDRA} ficherolog=${DIRECTORIO_LOGS_MARINE_SEDRA}/${F_LOG_SEDRA} -v ficheroerroneos=${LOG_SEDRA_ERRONEOS} -v...
5,827
Posted By danietepa
This return this error: comm: /dev/fd/10:...
This return this error:

comm: /dev/fd/10: No such file or directory
5,827
Posted By danietepa
This code returns me the sum of the two files...
This code returns me the sum of the two files regardless of differences,
It seems that the other partner's code works correctly.
Thank you.

result.txt

Malaga
Cadiz
Sevilla
Hola
Huelva...
5,827
Posted By danietepa
Sorry do not quite understand why tell me to use...
Sorry do not quite understand why tell me to use nawk or / usr/xpg4/bin/awk. How Could you use it? For example it does not work?

Thanks
5,827
Posted By danietepa
Thanks, I obtain this error: awk: syntax...
Thanks,
I obtain this error:

awk: syntax error near line 1
awk: bailing out near line 1
5,827
Posted By danietepa
Hi, Sorry for speaking in Spanish. When you...
Hi,
Sorry for speaking in Spanish.
When you run that command gives me this error:

grep: illegal option - f
Usage: grep-hblcnsviw pattern file. . .
5,827
Posted By danietepa
Find difference in two files
Hola,
Tengo un texto texto1.txt con el siguiente contenido:


Malaga
Cadiz
Sevilla
Hola


Y otro .txt texto2.txt con:

Malaga
Cadiz
Sevilla
Cordoba
Huelva


quiero obtener...
20,007
Posted By danietepa
Hi, Any solution to this problem? I have the...
Hi,
Any solution to this problem?
I have the same doubt

Thanks
2,475
Posted By danietepa
This line: ...
This line:
$HOME/prueba/Scripts/Recogida/recogida_sedra.sh

this inside another script called General.sh. Inside of that .sh go calling the other scripts

Seguramente sea algo facil
2,475
Posted By danietepa
It appears that will not let me run it .. ...
It appears that will not let me run it ..

]/home/oceane/prueba/Scripts/Recogida/recogida_sedra.sh: cannot execute
2,475
Posted By danietepa
Thanks, the problem is that after executing the...
Thanks, the problem is that after executing the first script seems not continuous, such as echo .. next

. $HOME/prueba/Scripts/Recogida/recogida_sedra.sh

resultado=$?
echo "el resultado es...
2,475
Posted By danietepa
Sorry I do not understand very well, What do...
Sorry I do not understand very well,
What do you mean you can not run scripts inside other?
Or if I can set an example for better understanding
Thank you!
2,475
Posted By danietepa
Problems with $?
Hello, I have the following piece of code that tries to retrieve the result of a .sh:

. $HOME/prueba/Scripts/Recogida/recogida_sedra.sh

resultado=$?
echo "el resultado es : $resultado"
...
1,430
Posted By danietepa
Thank you!!, and I think I solved it.
Thank you!!,
and I think I solved it.
1,430
Posted By danietepa
Trouble saving variable
Hi,
I have problems when you save a variable of a command. I have put the following line:

CONEXION_BAGDAD = $ (grep-c "Please login with USER and PASS" $ LOG_FILE_BAGDAD)

But I returned the...
Showing results 1 to 22 of 22

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