You can subsequently print the content with:
Anyway, I suspect what you are trying to do is using arrays. I do not know if your shell supports it, but if it does then an array alternative should work like this:
Hello everyone, can somebody tell me what is wrong with this code:
while true
do
java myTime > myTime.log
sleep 60
done
I get the following error:
./myTime: Syntax error at line 1 : `while' is not matched.
Thanks in advance! (6 Replies)
Started writing my code.
my read input is not even asking nor working?
And I get a EOF script error.
echo "1) aragorn.domain.net"
echo "2) marvel.domain.net"
echo "3) athena.domain.net"
echo "4) gandalf.domain.net"
echo "5) griffin.domain.net"
echo "What server would you like... (4 Replies)
Hello all,
Can someone tell me why I'm getting an error in the following code:
export return_code="$?"
if then
echo "load_shaw.sas failed."
exit
else
echo "Trigger the next script..."
# /path/to/next/script
fi
I get an error... (3 Replies)
Code:
#!/usr/bin/perl -w
use strict;
use warnings;
#Clears Screen
$CLEAR=`clear`;
print $CLEAR;
i get the below error:
Global symbol "$CLEAR" requires explicit package name at ./mutmg.pl line 6.
Global symbol "$CLEAR" requires explicit package name at ./mutmg.pl line 7. (1 Reply)
Trying to do a file count on files between a specific date. I entered the following command, but it's not working:
find . -type f \( -newer startdate -a ! -newer enddate \) -exec "ls -l | wc -l" {} \;
lil help? :D (4 Replies)
Hi ,
iam new with sed command
D:\bfx_db>sed -ne '/^SP2-*:/S/^\<.*\.*\>$/\2\p' reg.sql >>D:\out.log
The filename, directory name, or volume label syntax is incorrect.
Here my source file is reg.sql , i need the output in out.log
Can anybody Help on this???? (4 Replies)
Hello, all
Suppose my current directory has 3 files:
file_1 file_2 file_3
I wrote the following codes:
awk 'BEGIN{while("ls"|getline d) {myarray++}}; END{close("ls");for (i in myarray){print i, myarray}}' /dev/null
I expect the output be like:
1 file_1
2 file_2
3 file_3
... (7 Replies)
I want to let sleep 3 in the background and echo $i
pkglists="a b c d e f g"
f()
{
local i
set -- $pkglists
&& ((i +=2)) && sleep 3 &;echo $i
}
f (3 Replies)
Hi there, I am trying to select a number of lines based on the lat. lon columns in a file but my awk code gives me empty result.
Here is my file:
20100213 102212 33.1185 39.4078 2.9
20100214 141753 33.1058 39.9068 2.9
20100218 115828 33.1907 39.3575 2.9
20100225 220001 33.1932 39.9448... (10 Replies)
Discussion started by: johankor
10 Replies
LEARN ABOUT PHP
mailparse_uudecode_all
MAILPARSE_UUDECODE_ALL(3) 1 MAILPARSE_UUDECODE_ALL(3)mailparse_uudecode_all - Scans the data from fp and extract each embedded uuencoded fileSYNOPSIS
array mailparse_uudecode_all (resource $fp)
DESCRIPTION
Scans the data from the given file pointer and extract each embedded uuencoded file into a temporary file.
PARAMETERS
o $fp
- A valid file pointer.
RETURN VALUES
Returns an array of associative arrays listing filename information.
+-------------+-------------------------------------------------+
| | |
| filename | |
| | |
| | Path to the temporary file name created |
| | |
| | |
|origfilename | |
| | |
| | The original filename, for uuencoded parts only |
| | |
+-------------+-------------------------------------------------+
The first filename entry is the message body. The next entries are the decoded uuencoded files.
EXAMPLES
Example #1
mailparse_uudecode_all(3) example
<?php
$text = <<<EOD
To: fred@example.com
hello, this is some text hello.
blah blah blah.
begin 644 test.txt
/=&AI<R!I<R!A('1E<W0*
`
end
EOD;
$fp = tmpfile();
fwrite($fp, $text);
$data = mailparse_uudecode_all($fp);
echo "BODY
";
readfile($data[0]["filename"]);
echo "UUE ({$data[1]['origfilename']})
";
readfile($data[1]["filename"]);
// Clean up
unlink($data[0]["filename"]);
unlink($data[1]["filename"]);
?>
The above example will output:
BODY
To: fred@example.com
hello, this is some text hello.
blah blah blah.
UUE (test.txt)
this is a test
PHP Documentation Group MAILPARSE_UUDECODE_ALL(3)