01-29-2015
Moderator's Comments:
|
|
Posts from bigsanch and senhia83 have been hidden until usrrenny replies to sea's request for information about what was tried before submitting this request.
When a request is made to have the OP show what work has been done, or to clarify whether a question is homework/classwork, please do not offer solutions until the OP provides a suitable explanation.
|
|
This User Gave Thanks to Don Cragun For This Post:
10 More Discussions You Might Find Interesting
1. Programming
for example, the string a is "abcdefg", can i get a substring "bcd" (from ato a) from string a?
thank you (4 Replies)
Discussion started by: dell9
4 Replies
2. Shell Programming and Scripting
hi all,
I am trying to extract SUBSTRINGS out of a string using ksh.
The string is "SAPR3K.FD0.FA.TJ.B0010.T050302"
I tried using
a= `expr substr $stringZ 1 2`
which is giving me a syntax error, donno why??
any ideas why its not working??
I also tried
echo "welcome" | awk '{... (3 Replies)
Discussion started by: maradona
3 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
Can anybody help me to get the substring from the given string. (3 Replies)
Discussion started by: Anshu
3 Replies
4. Shell Programming and Scripting
Hi All,
Problem Description:
XML_REP_REQUEST=`CONCSUB "$LOGIN" "SQLAP" "$RESP_NAME" "$USRNM" WAIT="Y" "CONCURRENT" "APPLICATION_SHORT_NAME"
"CP_SHORT_NAME"`
echo Report Request: $XML_REP_REQUEST --to print value in log file
While execution the value of 'XML_REP_REQUEST' is 'Prozess... (5 Replies)
Discussion started by: suman.g
5 Replies
5. Shell Programming and Scripting
#!/bin/sh
PRINTF=/usr/bin/printf
PASSWD=/etc/passwd
$PRINTF "Enter a UserID\n"
read USERID
if ; then
$PRINTF "$USERID does not exist, please contact IT service\n"
exit 1
fi
USERHOME=`grep "^$USERID:" $PASSWD | awk -F : '{print $6}'`
USERSHELL=`grep "^$USERID:"... (1 Reply)
Discussion started by: ikeQ
1 Replies
6. Shell Programming and Scripting
Hi,
I have an input string say for example:
ABC,DEF,IJK,LMN,...,XYZ
The above string is comma delimited. Now I have to extract the last part after the comma i.e. XYZ.
:b: (3 Replies)
Discussion started by: bghosh
3 Replies
7. UNIX for Dummies Questions & Answers
Hello
I am trying to substring the month in a date string
I am getting an error " bad substitution"
#!/bin/ksh
INPUT='20121225'
echo ${$INPUT:5:2}
exit 0
Very new in unix.
Thanks.
Please use code tags next time for your code and data. (9 Replies)
Discussion started by: lillyt2006
9 Replies
8. Shell Programming and Scripting
Good morning friends,
how can i remove a string with linux scripting from a file? In specific i want to remove from a file all the tweet names and links
eg
@aerta and links such as http://dst.co/pIiu3i9c
Thanx!!! (4 Replies)
Discussion started by: paladinaeon
4 Replies
9. UNIX for Dummies Questions & Answers
I'm somewhat new to shell scripting and I have a file that had a date in it.
/somedirectory/datefile.txt
I want to take the date in the file: 2013-06-12
and change the formate to 20130612 and have it as a variable/parm
I also what to take that date 2013-06-12
and substring it.
I know... (3 Replies)
Discussion started by: MJCreations
3 Replies
10. Shell Programming and Scripting
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 CENTOS
rdma_post_read
RDMA_POST_READ(3) Librdmacm Programmer's Manual RDMA_POST_READ(3)
NAME
rdma_post_read - post an RDMA read work request.
SYNOPSIS
#include <rdma/rdma_verbs.h>
int rdma_post_read (struct rdma_cm_id *id, void *context, void *addr, size_t length, struct ibv_mr *mr, int flags, uint64_t remote_addr,
uint32_t rkey);
ARGUMENTS
id A reference to a communication identifier where the request will be posted.
context User-defined context associated with the request.
addr The address of the local destination of the read request.
length The length of the read operation.
mr Registered memory region associated with the local buffer.
flags Optional flags used to control the read operation.
remote_addr The address of the remote registered memory to read from.
rkey The registered memory key associated with the remote address.
DESCRIPTION
Posts a work request to the send queue of the queue pair associated with the rdma_cm_id. The contents of the remote memory region will be
read into the local data buffer.
RETURN VALUE
Returns 0 on success, or -1 on error. If an error occurs, errno will be set to indicate the failure reason.
NOTES
For a list of supported flags, see ibv_post_send. Both the remote and local data buffers must have been registered before the read is
issued, and the buffers must remain registered until the read completes.
Read operations may not be posted to an rdma_cm_id or the corresponding queue pair until it has been connected.
The user-defined context associated with the read request will be returned to the user through the work completion wr_id, work request
identifier, field.
SEE ALSO
rdma_cm(7), rdma_connect(3), rdma_accept(3), ibv_post_send(3), rdma_post_readv(3), rdma_reg_read(3), rdma_reg_msgs(3)
librdmacm 2010-07-19 RDMA_POST_READ(3)