You could try
In bash it seems if you use double square brackets, that the wildcard is working. Single sq. brackets do not work - I guess test is a bit limited to the shell built-in:
---------- Post updated at 09:18 AM ---------- Previous update was at 09:10 AM ----------
Oh and I didn't notice at first:
Checking $i will not help since it is just a counter for your array and will contain only a number, if I am correct.
Better check something like ${HDD_LIST_Array[$i]}
Thanks for your reply.
I realized I needed to compare the element of the array instead of some value...which is what I was doing.
Hello everyonel,
I have an array set like so
num=4
read name
arr=name
I go through while loop to assign different values to different array element from 1 to 4. when I try to access the FIRST element of the array I get the last one first. Like if I say ${arr} it will show the last element... (4 Replies)
Example - Script to find the index of a month from array
MONTHS="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec"
set -A MON $MONTHS
A="Sun May 23 09:34:30 GMT 2010"
getMonth=`echo $A|cut -c5-7` ##getMonth=May
Arrayindex_in_MONTHS_array= ???? # { 0,1,2,3,4 } - at fifth place
... (7 Replies)
I need to remove an element from the below array variable TABLENAME.
#!/bin/ksh
set -A TABLENAME "mirf roxar keke mirs"
echo "the array is ${TABLENAME}"
If i need to remove say keke and have the final TABLENAME as below, how this could be achieved. Pls throw some light.
echo "Modified... (3 Replies)
I am trying to take all the elements of an array and multiply them by 2, and then copy them to a new array. Here is what I have
i=0
for true in DMGLIST
do
let DMGSIZES2="${DMGSIZES}"*2
let i++
done
unset i
echo ${DMGSIZES2}
It does the calculation correctly for the first element,... (7 Replies)
Hi All,
I am new to perl I am stuck in simple problem I need your help
I want to define a subroutine.
sub check_if_entity_exists(@array_to_be_checked,$entityName)
I have array as
http-listener-1
http-listener-2
http-listener-3
http-listener-4
If i send http-listener-3 my... (1 Reply)
Hello to all,
I'm trying to separate the string "str" using a regex within match function.
The substrings that I want to separate, begin with 22, 23, 24 or 25 and followed by 12 or 14 characters. And I want to
replace 22 with MJS, 23 with UYT, 24 with WER and 25 with PIL.
For this string... (4 Replies)
This question is for someone that's more familiar with Array Element.
I need to know if the maximum array element that can be assigned is 1024 and if its so, Is there a workaround solution when the counter exceeded 1024?
param_array="$param_nam"
counter=$counter+1
#to avoid space... (3 Replies)
Hello,
I want to see if element exists in array, if so then, check it's corresponding value.
Column 4 is position and column 1 is the chromosome for it. There are duplicates for one position on one chromosome.
I want to check if same position exists on different chromosome:
Data... (8 Replies)
Discussion started by: genome
8 Replies
LEARN ABOUT DEBIAN
roundup-ctl
ROUNDUP-CTL(1) General Commands Manual ROUNDUP-CTL(1)NAME
roundup-ctl - roundup server control interface
SYNOPSIS
roundup-ctl [options] command
DESCRIPTION
roundup-ctl is a front end to the roundup server. It is designed to help the administrator control the functioning of the roundup server
daemon. This script mimics most of the behaviour of a regular init script, but works as a front end to the runit package to control the
roundup service. So, in order to use this, you need the runit package, too. Please note that using this script is mostly incompatible with
having roundup controlled by runit directly in the form of automatic startup.
The roundup-ctl script returns a 0 exit value on success, and >0 if an error occurs. For more details, view the comments in the script.
OPTIONS -d directory
Use given directory as service directory.
COMMANDS
The command can be any one or more of the following options:
start If the roundup server is not runinng, start it. If the server stops, restart it. stop Stops the roundup server. status Print sta-
tus of the roundup server.
SEE ALSO roundup-server(1)runsvctrl(8)runsvstat(8)svwaitdown(8)AUTHOR
Bastian Kleineidam <calvin@debian.org>, Toni Mueller <toni@debian.org>
31 May 2004 ROUNDUP-CTL(1)