10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
This is very basic. Yet Iam struggling to get the right pattern for my check.
Apologize in advance to ask a very lame question.
I have to validate if a value of the variable starts with "efgh" and followed by 6 numbers.
Var1="efgh234567"
The condition Iam trying to achieve is similar to... (6 Replies)
Discussion started by: deepakwins
6 Replies
3. Shell Programming and Scripting
I want to check if the string has the substring in IF condition then process...
i tried below but not working
if ];
then
.............
field can be "reserved1" ....reservedn / fillspaces1 ... fillspacesn (4 Replies)
Discussion started by: greenworld123
4 Replies
4. Programming
hi everyone
I have a C program where I have a line and I want to check if the line contains a string.The line is stored in a buffer.How can I do that?
Can I consider the whole line as a string and check for a substring?And if so what's the most efficient way to achieve it? (1 Reply)
Discussion started by: vlm
1 Replies
5. Programming
Hi,
I have a macro which I use with ROOT.
In this macro I want to check if a part of string exist so I can ignore it inside a loop. So, inside a loop I want to have something like:
if (string == "pre_ti_data_bdt*" || string == "pre_ti_data_nn*")
continue;but of course I cannot use * in this... (11 Replies)
Discussion started by: faizlo
11 Replies
6. 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
7. 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
8. 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
9. 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
10. 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