I have to add a variable value to an array, something like this:
......
@my_array_name = $value_of_this_variable;
This doesnt seem to work, any ideas why?
Thanks! (4 Replies)
i have a file called file.txt having the following entries.
2321
2311
2313
4213
i wnat to store these values in a list and i want to iterate the list using loop and store it in another list (1 Reply)
Hi,
Is there an easy way to simulate following Perl code in Bash.
if ( grep {$my_value eq $_} @ARGV ){
print "Do Something\n";
} else {
die "Invalid value";
} (0 Replies)
Hi,
cut -d: -f1,3 /etc/group >rpt.out
I have a doubt in perl. right i am getting list of group user id into rpt.out file. instead i need to store it as an array in perl script. could you please tell me how can i get list of user into an array in perl script..
thanks in advance. (1 Reply)
Hi,
I have 2 arrays:
@names=qw(amith veena chaitra);
@files=qw(file.txt file1.txt file3.txt);
There is one to one relationship between names and files.
There needs to be mapping created between names and files.
The output should be like this:
amith --> file.txt
veena --->... (3 Replies)
Hi,
i want to search and replace array values by using perl
perl -pi -e "s/${d$i]}/${b$j]}" *.xml
i am using while loop for the same. if i excute this,it shows "Substitution replacement not terminated at -e line 1.".
please tell me what's wrong this line (1 Reply)
I have 2 files , i need compare both files field by field, and in the fourth field some value will be interchaged and some value will be **.
ex: file1 john|0.0|4|**:25;JP:50;UY:25
file2 john|0.0|4|JP:50;**:25;UY:25 (4 Replies)
I know that
@food = %fruit;
Works. But how do I assign %fruit and %veggies to @food ? (2 Replies)
Discussion started by: popeye
2 Replies
LEARN ABOUT DEBIAN
apt-spy.conf
APT-SPY.CONF(5) File Formats Manual APT-SPY.CONF(5)NAME
apt-spy.conf - configuration file for apt-spy(8)DESCRIPTION
apt-spy.conf is the configuration file for apt-spy(8). It consists of a series of area labels, followed by a list of countries belonging
to that label. Whitespace is ignored.
Comments may be added anywhere, and begin with the hash ('#') character. Once a hash character is encountered, the rest of the line is
ignored.
A label consists of any alphanumeric characters, and ends with a colon character (':'). The label must be on a line by itself (excluding
comments).
Following a label are a list of country codes (one per line) of countries belonging to that label.
Each country has a unique two-letter country code corresponding to its top level domain identifier. This is the same as the ISO3166 code.
You can find the country code for a specific country either by looking at /var/lib/apt-spy/mirrors.txt, or by looking at the commented
examples in the default apt-spy.conf.
Labels cannot exist within labels. The end of a label section is signaled by the start of a new one, or by the end of file.
Any valid label existing in apt-spy.conf can be specified to apt-spy using the '-a' option. apt-spy will then proceed to benchmark the
mirrors in the list of countries associated with that label.
EXAMPLES
This is an example of a valid apt-spy.conf file:
USUK:
GB # United Kingdom
US # United States
Australia:
AU
France-Germany-Netherlands:
FR
DE
NL
There is a default configuration file included with apt-spy. For further examples, and for a list of valid country codes, please refer to
this.
SEE ALSO apt-spy(8), apt(8), sources.list(5)
20th May, 2003 APT-SPY.CONF(5)