I would like to know how to pass a variable inside a variable to a function.
sample code below
--------------
for x in 1 9
do
check_null $C$x ##call function to check if the value is null
if
then
echo "line number:$var_cnt,... (2 Replies)
Hi All,
I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl
FROM_DATE="06/05/2008"
TO_DATE="07/05/2008"
"perl -ne ' print if ( $_ >="$FROM_DATE" && $_ <= "$TO_DATE" ) ' filename"
filename has... (10 Replies)
Any help would be great. I know this is a dumb way of doing this, but I would like to know if there is a solution doing it this way. I'm very new at this and I'd like to learn more. Thanks! :D:D
count=0
while ; do
echo "enter your name"
read name_$count
let count=count+1
done
... (2 Replies)
Hi everybody,
Firstly, this would be the first time I'm using JavaScript. My background is mainly Perl. Nevertheless, here's my problem.
So I've created a function
function linkout(url){
setTimeout("window.open(url)",5000) //in milliseconds
}
However because the variable "url" is... (0 Replies)
Not sure if this is the right place to ask this but here goes. I am creating a cheat sheet for co-workers. The concept is that you pick wire size and conduit size and the amount of wires that will fit is displayed. I haven't used alot of drop downs and can't quite figure out the way the get id... (3 Replies)
Would really appreciate it if someone could point out my mistake in this line of code, i've been staring blankly at it trying everything i can think of some time now and coming up with nothing.
#!/bin/bash
echo "Enter Username"
read Username
awk -F: -v var=${Username} '/^var:/... (9 Replies)
I'm trying to write a basic bash script that takes input you give (what directory, if any, what name, if any ....) and passes the information to find.
I'm trying to just create a string with all variables and then pass it to find. So far I have this extremely simple:
#!/bin/bash -f
... (2 Replies)
I have a below syntax its working fine...
var12=$(ps -ef | grep apache | awk '{print $2,$4}')
Im getting expected output as below:
printf "%b\n" "${VAR12}"
dell 123
dell 456
dell 457
Now I wrote a while loop.. the output of VAR12 should be passed as input parameters to while loop and results... (5 Replies)
Hi All,
I need to pass a variable from bash script to perl script and in the perl script i am using those variables in the sql query but its giving
error :
Use of uninitialized value $ENV{"COUNTRYCD"} in concatenation (.) or string at /GIS_ROOT/custom/tables/DBread_vendor.pl line 50.
Can ... (6 Replies)
I am totally new to PHP and I am trying to create a script that will as a user for a hostname and then use the "hostname" variable to generate a report using REST API.
I am able to create the html script and php script to GET the "hostname" but I am having trouble passing the hostname variable... (10 Replies)
Discussion started by: kieranfoley
10 Replies
LEARN ABOUT DEBIAN
ost_counter
ost::Counter< T >(3) Library Functions Manual ost::Counter< T >(3)
NAME
ost::Counter< T > -
The counter template is used for generic objects which act as automatic counters.
SYNOPSIS
#include <counter.h>
Public Member Functions
Counter ()
Construct and initialize a counter to zero.
Counter (const Counter &counter)
Construct a counter with an initial value set for another counter.
Counter (T initial)
Construct a counter with an initial value of the specified data type.
T & operator= (T c)
operator T ()
Protected Attributes
T count
Detailed Description
template<typename T>class ost::Counter< T >
The counter template is used for generic objects which act as automatic counters.
Each time the object is accessed, the underlying counted data type is incremented.
Author:
David Sugar dyfet@gnutelephony.org Automatic counter template class.
Constructor & Destructor Documentation
template<typename T > ost::Counter< T >::Counter () [inline]
Construct and initialize a counter to zero.
References ost::Counter< T >::count.
template<typename T > ost::Counter< T >::Counter (const Counter< T > &counter) [inline]
Construct a counter with an initial value set for another counter. Parameters:
counter to copy from.
References ost::Counter< T >::count.
template<typename T > ost::Counter< T >::Counter (Tinitial) [inline]
Construct a counter with an initial value of the specified data type. Parameters:
initial value to set.
References ost::Counter< T >::count.
Member Function Documentation
template<typename T > ost::Counter< T >::operator T () [inline]
References ost::Counter< T >::count.
template<typename T > T& ost::Counter< T >::operator= (Tc) [inline]
Member Data Documentation
template<typename T > T ost::Counter< T >::count [protected]
Referenced by ost::Counter< T >::Counter(), and ost::Counter< T >::operator T().
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::Counter< T >(3)