I am trying to find a way to generate random numbers within a shell script.
Does Solaris have a utility that will generate random numbers?
Thanks in advance.
B (3 Replies)
Hi all, I have a tab separated file, and one of the fields is sub-delimited by colon. The problem is there can be zero to 4 colons within this field. When I try to change colons to tabs the result is a file with a differing number of fields.
I want to go from:
a:b:c:d:e
a:b:c
a:b:c:d:e
a... (4 Replies)
Hi All,
I am having two files (file1 & file2) and a filelist.txt file below.
file1:
$$STRINGVAR1=5
$$STRINGVAR2=10
$$LAST_UPD_DT_TBL1=12/12/2010 12:00:00
$$STRINGVAR3=100
$$LAST_UPD_DT_TBL2=01/01/2010 12:00:00... (8 Replies)
hi Gurus,
I need separate a file which is one huge line to multiple lines based on certain number of charactors. for example:
abcdefghi high abaddffdd
I want to separate the line to multiple lines for every 4 charactors.
the result should be
abcd
efgh
i hi
gh a
badd
ffdd
Thanks in... (5 Replies)
Hi everyone,
I have two files, namely:
file1:
file1Col1Row1;file1Col2Row1;file1Col3Row1
file1Col1Row2;file1Col2Row2;file1Col3Row2
file1Col1Row3;file1Col2Row3;file1Col3Row3file2:
file2Col1Row1;file2Col2Row1;file2Col3Row1
file2Col1Row2;file2Col2Row2;file2Col3Row2... (0 Replies)
Hey everyone,
I have a bunch of lines with values in field 4 that I am interested in.
If these values are between 1 and 3 I want it to count all these values to all be counted together and then have the computer print out
LOW and the number of lines with those values in between 1 and 3,... (2 Replies)
Hi,
Do anybody knows how to use awk or any command to random print out 1000 number which start from range 1 to 150000?
I know that "rand" in awk can do similar random selection.
But I have no idea how to write a code that can random pick 1000 number from range 1 to 150000 :confused:
... (1 Reply)
Discussion started by: perl_beginner
1 Replies
LEARN ABOUT PHP
ini_get_all
INI_GET_ALL(3) 1 INI_GET_ALL(3)ini_get_all - Gets all configuration optionsSYNOPSIS
array ini_get_all ([string $extension], [bool $details = true])
DESCRIPTION
Returns all the registered configuration options.
PARAMETERS
o $extension
- An optional extension name. If set, the function return only options specific for that extension.
o $details
- Retrieve details settings or only the current value for each setting. Default is TRUE (retrieve details).
RETURN VALUES
Returns an associative array with directive name as the array key.
When $details is TRUE (default) the array will contain global_value (set in php.ini), local_value (perhaps set with ini_set(3) or .htac-
cess), and access (the access level).
When $details is FALSE the value will be the current value of the option.
See the manual section for information on what access levels mean.
Note
It's possible for a directive to have multiple access levels, which is why access shows the appropriate bitmask values.
CHANGELOG
+--------+------------------+
|Version | |
| | |
| | Description |
| | |
+--------+------------------+
| 5.3.0 | |
| | |
| | Added $details. |
| | |
+--------+------------------+
EXAMPLES
Example #1
ini_get_all(3) examples
<?php
print_r(ini_get_all("pcre"));
print_r(ini_get_all());
?>
The above example will output something similar to:
Array
(
[pcre.backtrack_limit] => Array
(
[global_value] => 100000
[local_value] => 100000
[access] => 7
)
[pcre.recursion_limit] => Array
(
[global_value] => 100000
[local_value] => 100000
[access] => 7
)
)
Array
(
[allow_call_time_pass_reference] => Array
(
[global_value] => 0
[local_value] => 0
[access] => 6
)
[allow_url_fopen] => Array
(
[global_value] => 1
[local_value] => 1
[access] => 4
)
...
)
Example #2
Disabling $details
<?php
print_r(ini_get_all("pcre", false)); // Added in PHP 5.3.0
print_r(ini_get_all(null, false)); // Added in PHP 5.3.0
?>
The above example will output something similar to:
Array
(
[pcre.backtrack_limit] => 100000
[pcre.recursion_limit] => 100000
)
Array
(
[allow_call_time_pass_reference] => 0
[allow_url_fopen] => 1
...
)
SEE ALSO
"How to change configuration settings", ini_get(3), ini_restore(3), ini_set(3), get_loaded_extensions(3), phpinfo(3), ReflectionExten-
sion::getINIEntries.
PHP Documentation Group INI_GET_ALL(3)