@graysky, Thanks for posting the sample. It is a bit much. What usually gets done is posting a smaller sub sample and if need be post the entire sample by uploading it as an attachment..
Edited. Didn't know pastebin was taboo here nor did I know that I could upload attachments.
Quote:
Originally Posted by bakunin
If i get your requirement correctly you might want to consult this thread.
How can i devide decimal numbers?
I am getting this kind of error:
line 18: 200.2/40.234: syntax error in expression (error token is ".2/40.234")
What can i do to work around this problem?
Thanks for any advice. (4 Replies)
Hi friends
How can I use "for loop" for decimal numbers?
ex: 0.1 < x < 0.6
I used this commands but does'nt work.
LIMIT=0.6
for ((x=0.1; x<=LIMIT; x++))
do
-
-
-
done
Many thanks (1 Reply)
Im trying to compare two numbers with decimals but its not working as expected.
a=1
b=1.1
if
then echo "equal"
fi
When I do this it says that the numbers are equal. Ultimately Im using -le and -ge in the if statements but I tested with -eq for simplicity.
Any way to make this... (3 Replies)
Hello...
I am new to unix and I am wondering if in a C-shell script , Are we supposed to use only whole numbers........ for example..if a program needs to calculate the average of some numbers........
@ avg = (($1 +$2 + $3)/3)) is returning a whole number.........How can a decimal be... (7 Replies)
Just wondering if someone could assist me with shell script I'm trying to write. I need to read the final column of a text file (shown below) and workout what the average number is. The text file will have a variable number of lines, I just want the script to pull out the values in the final field... (14 Replies)
Hi experts,
My number output has somehting like below
filename /temp
0.23
10.23
How do i put a condition to the above numbers?
e.g
if then
the . seem to give me problems. Pls help.
thanks
---------- Post updated at 05:25 PM ---------- Previous update was at 05:23 PM... (9 Replies)
Hi,
I have a small problem with my script. I have everything in order but it doesnt seem to compare anything less than 1 correctly. If the input is more than 1, then the results is correct.
If the input is 0.xxx (anything) it returns erroneous results. Pls help
input=0.12
if ; then
... (7 Replies)
Hello All,
I need to extract lines from a file that contains ALPHANUMERIC and the length of Alphanumeric is set to 16. I have pasted the sample of the lines from the text file that I have created.
My problem is that sometimes 16 appears in other part of the line. I'm only interested to... (14 Replies)
For numbers between 0 and 1 the below logic is not working.
Output of above shall be "correct" but its echoing "incorrect".Kindly suggest
a=.1
if
then
echo correct
else echo incorrect
fi
Video tutorial on how to use code tags in The UNIX and Linux Forums. (3 Replies)
Hi!
I found and then adapt the code for my pipeline...
awk -F"," -vOFS="," '{printf "%0.2f %0.f\n",$2,$4}' xxx > yyy
I add -F"," -vOFS="," (for input and output as csv file) and I change the columns and the number of decimal...
It works but I have also some problems... here my columns
... (7 Replies)
Discussion started by: echo manolis
7 Replies
LEARN ABOUT CENTOS
reporter-upload
REPORTER-UPLOAD(1) LIBREPORT MANUAL REPORTER-UPLOAD(1)NAME
reporter-upload - Uploads compressed tarball of problem directory.
SYNOPSIS
reporter-upload [-c CONFFILE]... [-d DIR] [-u URL]
DESCRIPTION
The tool is used to create a compressed tarball of the problem directory and upload it to a URL. Supported protocols include FTP, FTPS,
HTTP, HTTPS, SCP, SFTP, TFTP and FILE.
Configuration file
Configuration file contains entries in a format "Option = Value".
The options are:
URL
The URL where tarball should be uploaded.
Integration with ABRT events
reporter-upload can be used as a reporter, to allow users to upload compressed tarballs of problem directories to a configured URL. This
usage can be configured in /etc/libreport/report_event.conf:
EVENT=report_Upload reporter-upload
It can be also used on the post-create event to upload it automatically.
EVENT=post-create reporter-upload
OPTIONS -d DIR
Path to problem directory.
-c CONFFILE
Path to configuration file. When used in ABRT event system, the file contains site-wide configuration. Users can change the values via
environment variables.
-u URL
The URL where tarball should be uploaded. URL should have form protocol://[user[:pass]@]host/dir/[file.tar.gz] where protocol can be
http(s), ftp, scp, or file. File protocol can't have user and host parts: file.tar.gz[1]. If URL ends with a slash, the archive name
will be generated and appended to URL; otherwise, URL will be used as full file name.
ENVIRONMENT VARIABLES
Environment variables take precedence over values provided in the configuration file.
Upload_URL
The URL where should be the tarball uploaded.
AUTHORS
o ABRT team
NOTES
1. file.tar.gz
file:///dir/
LIBREPORT 2.1.11 06/18/2014 REPORTER-UPLOAD(1)