Hi All,
Following is the output of a find commnd to locate log directories for various projects of UNIX AIX box:
/home/hbinz6pf/projectlibs/dpr_pfsdw_dev/&PH&
/opt/tools/ds/Template/&PH&
/data/ds/ms/hmsdw/projectlibs/dpr_ms_dev/&PH&
/data/ds/riskmi/projectlibs/dpr_riskmi_dev/&PH&... (1 Reply)
Hi All,
Following is the output of a find commnd to locate log directories for various projects of UNIX AIX box:
/home/hbinz6pf/projectlibs/dpr_pfsdw_dev/&PH&
/opt/tools/ds/Template/&PH&
/data/ds/ms/hmsdw/projectlibs/dpr_ms_dev/&PH&
/data/ds/riskmi/projectlibs/dpr_riskmi_dev/&PH&... (5 Replies)
Just so you know guys, I am a SAP Person and I am very new to UNIX. I need a help on a one line code.
In one of our script we are referring to a variable ($PN) which has the value /interfaces/DA1/DEV291/outbound/INVOIC which is being used in ftp command. I am just looking for a command to... (1 Reply)
Hi All,
I am new to this shell scripting world. Struck up with a problem, can anyone of you please pull me out of this.
Requirement : Need to get the index of a substring from a parent string
Eg : index("Sandy","dy") should return 4 or 3.
My Approach :
I used Awk function index to... (2 Replies)
please give me proper solution for finding a shortest substring from given string if string itself and first char and last char of that substr are also given by user
if S="dpoaoqooroo" and FC="o" and LC="o",then shortest substr is "oo" and rest of the string is "dpoaoqroo"
i have code but it is... (1 Reply)
Hey, geniuses of the world (no--facetious is NOT the word of the day;))!
I was wondering if there's a way to extract a specific portion from a string of characters in UNIX/LINUX. Give me the generic capabilities (assuming they exist) and I'll figure out the small details.
But if you know... (8 Replies)
Hello,
I have something that should be very simple yet I am losing my head in figuring out how to get it to work:
I am calling a function passing a parameter, this will return a particular string, next I want to substring the returned value and break it apart.
All of this I want to do on a... (2 Replies)
I have a file in which there are other file path and names
/home/data/abc.txt
/home/data/sdf.txt
/home/data/sdg.txt
how can I get the file names i.e. abc.txt sdf.txt sdg.txt
I searched the forum for sed command but it was confusing to me (10 Replies)
Hello,
I am trying to execute an SQL query from shell script.
A part of script is something like this:
fromDate=`echo $(date +"%F%T") | sed "s/-//g" | sed "s/://g"`
$ORACLE_HOME/sqlplus -s /nolog <<EOD1
connect $COSDBUID/$COSDBPWD@$COSDBSID
spool... (4 Replies)
Hello.
First best wishes for everybody.
here is the input file ("$INPUT1") contents :
BASH_FUNC_message_begin_script%%=() { local -a L_ARRAY;
BASH_FUNC_message_debug%%=() { local -a L_ARRAY;
BASH_FUNC_message_end_script%%=() { local -a L_ARRAY;
BASH_FUNC_message_error%%=() { local... (3 Replies)
Discussion started by: jcdole
3 Replies
LEARN ABOUT PHP
mb_encode_mimeheader
MB_ENCODE_MIMEHEADER(3) 1 MB_ENCODE_MIMEHEADER(3)mb_encode_mimeheader - Encode string for MIME headerSYNOPSIS
string m0],n[int_m$indent]) (string $str, [string $charset = mb_internal_encoding()], [string $transfer_encoding = "B"], [string $line-
feed = "
DESCRIPTION
Encodes a given string$str by the MIME header encoding scheme.
PARAMETERS
o $str
- The string being encoded.
o $charset
-$charset specifies the name of the character set in which $str is represented in. The default value is determined by the current
NLS setting ( mbstring.language). mb_internal_encoding(3) should be set to same encoding.
o $transfer_encoding
-$transfer_encoding specifies the scheme of MIME encoding. It should be either "B" (Base64) or "Q" (Quoted-Printable). Falls back
to "B" if not given.
o $linefeed
-$linefeed specifies the EOL (end-of-line) marker with which mb_encode_mimeheader(3) performs line-folding (a RFC term, the act of
breaking a line longer than a certain length into multiple lines. The length is currently hard-coded to 74 characters). Falls back
to "
" (CRLF) if not given.
o $indent
- Indentation of the first line (number of characters in the header before $str).
RETURN VALUES
A converted version of the string represented in ASCII.
EXAMPLES
Example #1
mb_encode_mimeheader(3) example
<?php
$name = ""; // kanji
$mbox = "kru";
$doma = "gtinn.mon";
$addr = mb_encode_mimeheader($name, "UTF-7", "Q") . " <" . $mbox . "@" . $doma . ">";
echo $addr;
?>
NOTES
Note
This function isn't designed to break lines at higher-level contextual break points (word boundaries, etc.). This behaviour may
clutter up the original string with unexpected spaces.
SEE ALSO mb_decode_mimeheader(3).
PHP Documentation Group MB_ENCODE_MIMEHEADER(3)