I want to disable some services starting automatically while system booting, for instance if i want to disable vold what i have to do ? i think some services related to a script init level shell directory,and i think as well that since solaris 10 they added a command to enable and disable services... (2 Replies)
hi i have a requirement to write a mail script which needs to be automated.There are 7 CSV files generated for 7 clients in a single day.Each file will contain one header and the name of the file follows a nomenclature like ABC_20080402_ClientID.csv.ClientID is lets say... (3 Replies)
Hi,
What is the use of the signal -3 in kill command in unix?
I read the meaning and typical use of this signal in one of the Oreilly books as below.
Quit -- stop running (and dump core). Sent when you type CTRL-\.
what does the CTRL-\ command do? Is it the combination of CTRL and... (6 Replies)
Hi ,
I have a txt file with contents like:
1234
2345
3456
7891
I need to write a script which takes input file as txt file..run a sql query for that number and place the output of query in another file..
select * from bus_event where acct_nbr='1234'( from input txt file)
the query... (20 Replies)
Hi Experts,
In a particular dir, I have many files *AJAY*.
How can I get total size of all such files.
I tried du -hs *AJAY* but it gave me individual size of all files.
All I require is summation of all.
Thanks,
Ajay (4 Replies)
Input file
I have a file with four fields.
f1,f2,f3,f4
A,1,10,00,S
B,2,20,00,00,D
C,3,100,00,00,G
I want Output like
f1|f2|f3|f4
A|1|10,00|S
B|2|20,00,00|D
C|3|100,00,00|G
please help on this (4 Replies)
I am quite new to compiling source codes in linux and have been running into a lot of problems in trying to do so since the platform configuration is different from most.
For starters, I know that you need to enter the following commands in order to install any software manually in linux:... (2 Replies)
Discussion started by: Ice_Drake1
2 Replies
LEARN ABOUT PHP
array_pad
ARRAY_PAD(3) 1 ARRAY_PAD(3)array_pad - Pad array to the specified length with a valueSYNOPSIS
array array_pad (array $array, int $size, mixed $value)
DESCRIPTION array_pad(3) returns a copy of the $array padded to size specified by $size with value $value. If $size is positive then the array is
padded on the right, if it's negative then on the left. If the absolute value of $size is less than or equal to the length of the $array
then no padding takes place. It is possible to add at most 1048576 elements at a time.
PARAMETERS
o $array
- Initial array of values to pad.
o $size
- New size of the array.
o $value
- Value to pad if $array is less than $size.
RETURN VALUES
Returns a copy of the $array padded to size specified by $size with value $value. If $size is positive then the array is padded on the
right, if it's negative then on the left. If the absolute value of $size is less than or equal to the length of the $array then no padding
takes place.
EXAMPLES
Example #1
array_pad(3) example
<?php
$input = array(12, 10, 9);
$result = array_pad($input, 5, 0);
// result is array(12, 10, 9, 0, 0)
$result = array_pad($input, -7, -1);
// result is array(-1, -1, -1, -1, 12, 10, 9)
$result = array_pad($input, 2, "noop");
// not padded
?>
SEE ALSO array_fill(3), range(3).
PHP Documentation Group ARRAY_PAD(3)