Search Results

Search: Posts Made By: limadario
2,442
Posted By limadario
Let me explain better. I have this values: ...
Let me explain better. I have this values:


res=0.0032
res1=0.41234
res2=0.42342
res3=0.4523
res4=0.23123
res5=0.12311

and i want to do a for so that i can get the values inside this...
2,442
Posted By limadario
I want to increment the res$c so i can get a...
I want to increment the res$c so i can get a variable like:
$res1
$res2
$res3
$res4
2,208
Posted By limadario
The answer is: first i get the line that i want...
The answer is:
first i get the line that i want like this

variable=`head -n 4 file | tail -n 1`


the i get the position of the string:


varx1=`echo $variable | awk '{ print $4 }'`

...
9,796
Posted By limadario
I fixed the problem. Thanks
I fixed the problem. Thanks
2,442
Posted By limadario
Incrementing variable in for
Hi,
want to increment a variable in a for loop like this:

for (( c=$total-1; c>=0; c-- ))
do
if [ $maximo <= $res$c ];
then
maximo=$valores
fi
done


But it gives the error:...
9,796
Posted By limadario
it work's. Thanks ---------- Post updated at...
it work's. Thanks

---------- Post updated at 11:34 AM ---------- Previous update was at 10:47 AM ----------

Franklin52 (https://www.unix.com/members/302022134.html) your command gives this...
9,796
Posted By limadario
I want to do this but the values are in...
I want to do this but the values are in variables, not in a file.
9,796
Posted By limadario
Calculating average
Hi,
i have 12 float variables in a bash file and i want to calculate the average of them.

Can any body help?
2,208
Posted By limadario
Get all values separated with spaces(solved)
Hi, i have this text:



X (m) 4917536.9627 4917536.9673 0.0090 -0.0046
Y (m) -815726.1383 -815726.1294 0.0061 -0.0089
Z (m) 3965857.4730 3965857.4840 0.0071 -0.0110

X (m) 4917536.9627...
80,481
Posted By limadario
Kurumi your solution worked perfectly. Thanks
Kurumi your solution worked perfectly. Thanks
80,481
Posted By limadario
Now i have another problem. My bash file looks...
Now i have another problem. My bash file looks like this:

#!/bin/bash
cd /home/dario/Desktop/relatorio/$valor
ls
a=3
b=9
let "c= b*a"
d=$(echo "sqrt($c)" | bc)

echo "$d"



And the...
80,481
Posted By limadario
sqrt in bash
Hi,
i have a the following script:

#!/bin/bash
a=3
b=9
let "c= b*a"
let "d=sqrt $c "

echo $d


But when i execute the code, it gives me the an error saying:

line 5: let: d=sqrt 27 :...
7,718
Posted By limadario
I'm sure. And even if there are any files with...
I'm sure. And even if there are any files with the same name, I'm absolutely sure that they are the copy of the same file. That command worked perfectly. Thanks
7,718
Posted By limadario
The command copies all the sub-folders. I just...
The command copies all the sub-folders. I just want to copy pdf files inside the sub-folders and not the sub-folders
7,718
Posted By limadario
Copy files from unknown sub-folder
Hi,

I want to copy files from a unknown sub-folder to other sub-folder without copying the sub-folder. I tried the command:

find . -name Results*.pdf | cp *.* /home/dario/Desktop/

but i...
2,841
Posted By limadario
But i just wanted the : ...
But i just wanted the :

http://gps-ntrip.ibge.gov.br/processados/Sim_CASC2270.09o_20110118123430.zip

and its working
2,841
Posted By limadario
Thank you all. Franklin52...
Thank you all. Franklin52 (https://www.unix.com/members/302022134.html) suggestion work perfectly.
Thanks
2,841
Posted By limadario
kurumi...
kurumi (https://www.unix.com/members/302072387.html) The code doesn't work. It gives me the error:
line 3: require: command not found
line 4: require: command not found
line 5: syntax error near...
2,841
Posted By limadario
My html file is: <!doctype html public...
My html file is:

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Posicionamento por Ponto Preciso (PPP) - IBGE</TITLE>
<META http-equiv="Content-Type"...
2,841
Posted By limadario
Remove text in line
Hi,

i have a text file with some links and i want to remove some characters from it. My text file is something like this:


<p> <b> Arquivo CASC2270.09o transferido com sucesso. </b> </p><p>...
20,913
Posted By limadario
that did it. Thank you
that did it. Thank you
20,913
Posted By limadario
syntax error: invalid arithmetic operator
hi,
i have a bash script that i want to receive a a string from another bash file. But because the string has a dot in the middle it gives me an error. The error is in this line:

let valor=$1
...
7,421
Posted By limadario
Configure gmail in linux shell for sending email
Hello, i have a problem sending emails in the command line. I have introduced this command:
sendEmail -f my.account@gmail.com -t myself@domain.tld \
-u this is the test tile -m “this is a test...
Forum: Ubuntu 06-04-2010
7,073
Posted By limadario
I have a new problem in another site, but i think...
I have a new problem in another site, but i think that's the same thing. can you take a look. the command that i'm doing is this:
curl -L...
Forum: Ubuntu 06-03-2010
7,073
Posted By limadario
Thanks for your attention, this information was...
Thanks for your attention, this information was very helpful
Showing results 1 to 25 of 28

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