Hi
I need to pass a date argument with my shell script. Can any one send me code for the same.
eg For 15th Aug 2006. Iwant to pass parameter like this
./startenv.sh 08/15/2006.
Everyday date argument must change. Will the below code work ?
./startenv.sh date '+%m/%d/%y'
THanks... (1 Reply)
Hello everyone
I was asked to pass a parameter in the calling of a script. I´ll have two parameters London and Birmingham and I´ll need to pass this because each of these will have a specific script however with the same name.
/home/script/loaddata.ksh Lond
/home/script/loaddata.ksh Birm... (2 Replies)
Hi,
I have a requirement to write a script file(script1.sh) to read the file from the folder say /usr1/profiles/active and pass the file name as a parameter to another script file say (script2.sh) which would subsitute this parameter.
The script2.sh will have a line like the one below
... (1 Reply)
Hi All,
I have a 2 files. File1 i am generating using an ETL tool, which is a comman seperated delimited file which contains country code & load date.
everytime, this country code will be updated from a table. It might be AB or BA & ld_date will be for which date we need to load the file.
... (7 Replies)
I am unable to spit the file based on the 2nd column passing as a parameter with awk command.
Source file:
“100”,”customer information”,”10000”
“200”,”customer information”,”50000”
“300”,”product information”,”40000”
script: the command is not allowing to pass the parameters with the awk... (7 Replies)
Hi Experts,
I am passing current month & day (i.e. 'Jul 21') from script aaa.ksh to zzz.ksh. The value 'Mon DD' is being used in zzz.ksh.
Problem: If I pass 'Mon DD' value manually to zzz.ksh i.e.
/test/zzz.ksh 'Jul 21'
it works fine. However, if I pass value from aaa.ksh, it does... (2 Replies)
I would like to run a compress script on files in certain directories.
My compress_script.sh is just basically
compress file*
In order for me to use this I have to copy it into each directory and run it.
How can I state the directory on the command line with the compress script so it... (2 Replies)
OS SCO Open Server 6.0 MP4
I am trying to change the value of a enviornment variable thru a script and want to pass a parameter on the commande line, If I hard code the value inside the script the script changes the enviornment variable
. mytest
where my test is
MYVAR=$1
export MYVAR... (6 Replies)
Hi All,
I'm new to Linux and scripting, apologies in advance for 'stupid' questions.
Please help... Im writing a script that calls a sqlplus script but the sqlplus requires inputs and i cant seem to get this to work.
here is my code.
#!/bin/sh
TERM=vt100
export TERM... (4 Replies)
Say I have something like this to try and build a parameter string:
OPT1="This is my Option";
OPT2="/folder/file";
PARMS="-u me -J \"$OPT1\" -g \"$OPT2\"";
./script.ksh -n 1 $PARMS;
./script.ksh -n 2 $PARMS;
./script.ksh -n 3 $PARMS;
./script.ksh -n 4 $PARMS;
But this doesn't work. ... (2 Replies)
Discussion started by: Devyn
2 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)