I don't understand your question about the carat character. '^' can be inserted like any other character. In VI you hit 'i' to insert and then <shift 6> on a US keyboard.
I added ':' character to the end of the match to make sure it is an exact match. For instance "^Joe" can match "Joe", "Joe2", or "Joe_38933". "^Joe:" will only match user "Joe".
Hi, Im newbie,
I wanna to create file in each user directory, how to make that script, maybe someone can give me example, im confusing coz i have to change form one user directory to other
Thank U. (8 Replies)
Please help. I am the beginner. Don't understand about archive file. How to create a directory for the files from each archive with name of directory which equivalent to the base name of the archive. eg I have file abc.txt. How can I create a directory name abc. Thank you (1 Reply)
hello.
i hav accepted name of directory from user through a form.now i need to create a directory under cgi-bin of that name.I am not able to do so.n help is required (12 Replies)
Hi All,
I have directory under /opt/test.
The ownership of the test directory is root:root.
I have login to the server as test user.
I need to have some script to create a directory inside /opt/test.
This script will be called as test user.
When I try to execute... (4 Replies)
Hello,
I am new in AIX please tell how can i create user and add group in this user for example, i want to create user umair and want to add this user primanry group DBA and secondary group ORACLE,how can i do this please tell in detail
Thanks,
Umair (1 Reply)
Hi All,
I am trying to uninstall jdk 1.5 from my Solaris 10 64 bit but some how was not successful.so tried to delete the folder of jdk from /usr but its throughing error as:
Unable to remove directory jdk: Read-only file system
Even I tried to create a dir in /usr but its not allowing me... (4 Replies)
Hello All,
I have to write a shell script and use it in informatica. The script has to perform below actions:
The script gets executed from edw user.
Through the script, a DT folder has to be created under edw_sca user.
Is this scenario possible through a SHELL script or not.
... (2 Replies)
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
Discussion started by: digioleg54
9 Replies
LEARN ABOUT PHP
imap_rfc822_parse_adrlist
IMAP_RFC822_PARSE_ADRLIST(3) 1 IMAP_RFC822_PARSE_ADRLIST(3)imap_rfc822_parse_adrlist - Parses an address stringSYNOPSIS
array imap_rfc822_parse_adrlist (string $address, string $default_host)
DESCRIPTION
Parses the address string as defined in RFC2822 and for each address.
PARAMETERS
o $address
- A string containing addresses
o $default_host
- The default host name
RETURN VALUES
Returns an array of objects. The objects properties are:
o mailbox - the mailbox name (username)
o host - the host name
o personal - the personal name
o adl - at domain source route
EXAMPLES
Example #1
imap_rfc822_parse_adrlist(3) example
<?php
$address_string = "Joe Doe <doe@example.com>, postmaster@example.com, root";
$address_array = imap_rfc822_parse_adrlist($address_string, "example.com");
if (!is_array($address_array) || count($address_array) < 1) {
die("something is wrong
");
}
foreach ($address_array as $id => $val) {
echo "# $id
";
echo " mailbox : " . $val->mailbox . "
";
echo " host : " . $val->host . "
";
echo " personal: " . $val->personal . "
";
echo " adl : " . $val->adl . "
";
}
?>
The above example will output:
# 0
mailbox : doe
host : example.com
personal: Joe Doe
adl :
# 1
mailbox : postmaster
host : example.com
personal:
adl :
# 2
mailbox : root
host : example.com
personal:
adl :
SEE ALSO imap_rfc822_parse_headers(3).
PHP Documentation Group IMAP_RFC822_PARSE_ADRLIST(3)