You could also use a conf file for all those entries....
Even if it looks as simple as this:
While just reading from such a file is very easy using IFS="=" and a while read, any kind of 'dynamic' reading of a certain variable might become more complex.
There is the option to save each entry into a single file.
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)
All,
I would like to add the first 10 elements of an array. Here is how I am doing it now (only included first few add ops):
#!/usr/bin/ksh
###Grab the array values out of a file###
TOTAL=`awk '/time/' /tmp/file.out | awk '{print $4}'`
set -A times $TOTAL
SUM=$((${times} + times... (3 Replies)
I have a loop and I need to be able to unset the array element that I am currently accessing in it. I was thinking of making a counter that increments with the loop and doing unset $dirs but if I do that I am not sure if the other members of the array would get shifted down in index (meaning that... (2 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)
Hi every one.. I'm new to shell scripting... I would like to assign a single array element to a variable... Is it possible to do it....
Could any body help me.... (3 Replies)
Hi, How to get previous/next element in the array perl
Example
@queue = (1, 2 ,3 , 4);
I want to get value of 1 and 2, or, 2 and 3, or 3 and 4...etc and compare to value which one is greater to do that I need to get previous and next element of array ? (1 Reply)
set -A matched #find referenced files.
for i in ${file_names_html}
do
counter_j=0
for j in ${file_names_minus_index}
do
match=`cat $i | grep... (1 Reply)
Hello forum ,
Please solve the below queery.
A sorted array which has repated elements.
A = {1,2,3,3,4,5,5,5,6,9,9}
i want to delete the duplicate elements and to genrate a new array.
i need the array sholud be like this
A = {1,2,3,4,5,6,9}.
Please write the piece of code... (4 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)
Discussion started by: nextyoyoma
7 Replies
LEARN ABOUT REDHAT
libao.conf
libao.conf(5) libao configuration libao.conf(5)NAME
libao.conf - configuration for libao.
SYNOPSIS
/etc/libao.conf
~/.libao
DESCRIPTION
libao.conf and .libao are configuration files for libao, the audio output library. They specify various options to libao, as described
below. libao.conf sets system-wide options, whereas ~/.libao sets user-specific options. When an option is set in both places, the option
in ~/.libao takes precedence.
FILE FORMAT
The file consists of comments and key-value pairs. Comments are on separate lines that start with a # symbol. The key-value pairs are of
the form:
key=value
where key contains no whitespace and no equal signs. value will be all of the text after the equal sign until (but not including) the end-
ing newline. Beware of extra spaces at the end of the line! They will probably be interpreted as part of the option value.
Valid option keys are:
default_driver
The short name of the driver libao should use by default.
EXAMPLE
Here is an example libao.conf that forces the OSS driver to be used by default:
# This is a comment.
default_driver=oss
BUGS
libao.conf is missing a number of potentially useful options.
AUTHORS
Stan Seibert <indigo@aztec.asu.edu>
July 8, 2001 libao.conf(5)