I have two problems, and it would be great if someone could help me:
The first line does not calculate. I have checked the origin term to calculate the variables
and the result is OK. Normal substactions with $xx -100 work, but not in this constallation. I tried it with "| bc" and no result too.
And the comparison does not work, I tried -bg with no result too
Thanks for your help
Moderator's Comments:
Please view this code tag video for how to use code tags when posting code and data.
Last edited by vbe; 10-12-2012 at 05:27 AM..
Reason: code tags..
Hi,
I confess to be stuck ...
as explained here
Aliases - Bash Reference Manual
I added
shopt -s expand_aliasesto my script ... but it didn't work.
Later I've read I had to add this at the begning of my my script :
. ~/.bash_aliases(of course my aliases are in this file)
but again, the... (0 Replies)
Hello
I would like to help me create a script that:
Given a date, more precisely a year, one month and one day. must calculate the day after
-Input: Year, Month, Day
-Output: Next day the Year-Month-Day
thanks (9 Replies)
Hi ,
during 2 weeks i´ve been trying to find them.
i need DCMU packets for managing internal disks on sun fire x4500 and sun fire x4600 on rhel. i have opened to tickets to myoraclesupport but no answer.
please anybody could tell me a link or anythiing?? i´ve been searching and searching... (1 Reply)
I wrote the day calculator also in bash. I would like to now, that is it good so?
#!/bin/bash
datum1=`date -d "1991/1/1" "+%s"`
datum2=`date "+%s"`
diff=$(($datum2-$datum1))
days=$(($diff/(60*60*24)))
echo $days
Thanks in advance for your help! (3 Replies)
I posted this question before 2 months and gain a solution. Thanks again for this, but I tried it now and had no success. Could the specialists be so kind to have a second look please.
Please look down to see the whole code.
All 3 shown calculation possibilities have the same result... (12 Replies)
As the title suggests, I'm trying to install a second drive (really want an OS mirror) on a Sun Netra X1.
I've taken the spacer out, and had a go at with the drill-press so now I have a nice HDD tray. Have installed an IDE drive in the tray, plugged in the power and data cables that were... (0 Replies)
I have the following code in bash, however "set red frmt" is not displayed.
echo "iarg_rd = $iarg_rd"
iarg_rd="2"
if ; then
echo "Hello World"
fi
if ; then
frmt="${gap}${!frmt_titl_yl}"
elif ; then
frmt="${gap}${!frmt_titl_bk}"
elif ; then
echo... (2 Replies)
I have a file of sites and each site has a variable number of flow values with a date for each value. I want to determine the max value of flow for each site and output the site number, max value, and date of max value.The format structure (simplified) is the following:
Record Site Number ... (5 Replies)
Hi,
I need to write a bash script that when i enter two ip address, it will calculate summerize address for them.
Examlpe:
192.168.1.27/25
192.168.1.129/25
Result will be:
192.168.1.0/24
can you help me with this script?
I even dont know how to start with it (3 Replies)
I am trying to use awk to calculate the average of all lines in $2 for every file in a directory. The below bash seems to do that, but I cannot figure out how to capture the string before the _ as the output file name and have it be tab-delimeted. Thank you :).
Filenames in... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT DEBIAN
bbdigest
BBDIGEST(1) General Commands Manual BBDIGEST(1)NAME
bbdigest - calculate message digests
SYNOPSIS
bbdigest md5|sha1|rmd160 [filename]
DESCRIPTION bbdigest(1) is a utility to calculate message digests for a file or document. It is used when defining HTTP- or FTP-based content checks,
where bbtest-net(1) checks that a URL returns a specific document; instead of having to compare the entire document, the comparison is done
against a pre-computed message digest value using the MD5, RIPEMD160, SHA1 or any of the SHA2 (SHA-512, SHA-256, SHA-384, SHA-224) message
digest algorithms.
The optional filename parameter is the input file whose message digest should be calculated; if no filename is given, the data is read from
standard input.
bbdigest outputs a string containing the digest algorithm and the computed message digest. This is in a format suitable for use in the bb-
hosts(5) definition of a content check.
EXAMPLE
$ bbdigest md5 index.html
md5:88b81b110a85c83db56a939caa2e2cf6
$ curl -s http://www.foo.com/ | bbdigest sha1
sha1:e5c69784cb971680e2c7380138e04021a20a45a2
SEE ALSO bbtest-net(1), bb-hosts(5)Xymon Version 4.2.3: 4 Feb 2009 BBDIGEST(1)