Search Results

Search: Posts Made By: limadario
9,890
Posted By Franklin52
We can't guess what command you have on line...
We can't guess what command you have on line 188...
9,890
Posted By fpmurphy
The bash shell cannot handle floating point...
The bash shell cannot handle floating point arithmetic. You need to use another utility such as awk or bc do the calculation.

Using awk for example:

$ cat file
1.23
3.45
5.46
6.23

$...
9,890
Posted By Franklin52
You can do something like this: echo $var1...
You can do something like this:
echo $var1 $var2 $var3 | awk '{s+=$0}END{print s/NR}' RS=" "
80,641
Posted By kurumi
a=3 b=6 ruby -e "puts '%.2f' % Math.sqrt($a *...
a=3
b=6
ruby -e "puts '%.2f' % Math.sqrt($a * $b)"
80,641
Posted By pludi
Because Bash (and most other shells) don't know...
Because Bash (and most other shells) don't know any mathematical operations or functions beyond the basic five (add, sub, mul, div, mod). If you need higher level functions, use bc or a different...
7,727
Posted By Corona688
"cp" doesn't read from pipe, so the find is...
"cp" doesn't read from pipe, so the find is useless. What you're doing just amounts to cp *.* /home/dario/Desktop/

Try cp Results*.pdf /home/dario/Desktop/

Or if you're trying to find...
7,727
Posted By Corona688
Are you sure? What if some of them have the same...
Are you sure? What if some of them have the same name? They couldn't all exist in the same directory.

cp isn't capable of creating directories unless you gave it the -R parameter, so that can't...
2,845
Posted By kurumi
you need ruby installed on your system. if you...
you need ruby installed on your system. if you don't have it, use the other solutions.
2,845
Posted By joeyg
Please show example output
Many here will not open a zip file.
Paste your desired output here, and put CODETAGS around it to make it easier to read.
2,845
Posted By DGPickett
Assumes one per line; narrative is "Unzip to...
Assumes one per line; narrative is "Unzip to stdout the file you want in the zip, piping it to sed, which runs in the print on demand only mode, looking for the URL in an href attribute, either in...
2,845
Posted By kurumi
#!/usr/bin/env ruby -Ku require 'net/http' ...
#!/usr/bin/env ruby -Ku
require 'net/http'
require 'uri'
open("file").each do |line|
if line["gps-ntrip.ibge.gov.br"] and line[".zip"]
url = line.scan(/http:.[^>]*zip/)[0]
...
2,845
Posted By Franklin52
Try this: sed -n '/zip/...
Try this:
sed -n '/zip/ s/.*href=\([^>]*\)>.*/\1/p' file
20,948
Posted By Scrutinizer
let is an arithmetic command. Try: valor=$1
let is an arithmetic command. Try:
valor=$1
Forum: Ubuntu 06-03-2010
7,109
Posted By m1xram
cookies and javascript
Ran Wireshark (WS) and found out a couple things.


You must be registered.
It does use cookies.
JavaScript generates a random ID.
Upload file is multipart MIME format.
Intermediate...
Showing results 1 to 14 of 14

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