473,503 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to concate strings and value

14 New Member
Helllo guys,

i am not able to concate teh strings evn though i got lots of explaination reagding that in intrnet
my problem is that..
i read a value from a console and concat that with other strings like
read rad_no
echo '$rad_no'
var= echo 'select fn_deleteradno('
var2= $rad_no
var3= echo ')'
$echo "[${var}]+[${var2}]${var3}"
echo "$test"

if i input rad_no as 62397984242

how to add all to make select fn_deleteradno(62397984242);

thanking for any help
creeds
May 12 '08 #1
3 2157
gpraghuram
1,275 Recognized Expert Top Contributor
Helllo guys,

i am not able to concate teh strings evn though i got lots of explaination reagding that in intrnet
my problem is that..
i read a value from a console and concat that with other strings like
read rad_no
echo '$rad_no'
var= echo 'select fn_deleteradno('
var2= $rad_no
var3= echo ')'
$echo "[${var}]+[${var2}]${var3}"
echo "$test"

if i input rad_no as 62397984242

how to add all to make select fn_deleteradno(62397984242);

thanking for any help
creeds

Concatenation is like this
OUT="select fn_deleteradno("$rad_no")"

Raghuram
May 13 '08 #2
creeds
14 New Member
Hello
i tried with both these...
but it shows error as it doesnt get $rad_no value when passed to select fn_deleteradno()

so i wanted to concat the strings and $rad_no value, but ur suggestion is not matching with my output,
any suggestion
creeds
May 13 '08 #3
gpraghuram
1,275 Recognized Expert Top Contributor
Hello
i tried with both these...
but it shows error as it doesnt get $rad_no value when passed to select fn_deleteradno()

so i wanted to concat the strings and $rad_no value, but ur suggestion is not matching with my output,
any suggestion
creeds
which shell u are using?
Try using Bash or ksh

Raghuram
May 14 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
7245
by: eric.gagnon | last post by:
In a program randomly generating 10 000 000 alphanumeric codes of 16 characters in length (Ex.: "ZAZAZAZAZAZAZ156"), what would be an efficient way to ensure that I do not generate duplicates? ...
10
8992
by: Ian Todd | last post by:
Hi, I am trying to read in a list of data from a file. Each line has a string in its first column. This is what i want to read. I could start by saying char to read in 1000 lines to the array( i...
9
5248
by: Steven | last post by:
Hello, I have a question about strcmp(). I have four words, who need to be compared if it were two strings. I tried adding the comparison values like '(strcmp(w1, w2) + strcmp(w3, w4))', where...
3
1445
by: Alpha | last post by:
I have 2 strings, "12/28/2005" and "16:44:54". I need to conatenate them and convert them to datetime format so I can assign them to a datetime field in a datarow. The time is now being converted...
1
1899
by: Dave | last post by:
Hello All, I'm trying to clarify how Python avoids byte by byte string comparisons most of the time. As I understand, dictionaries keep strings, their keys (hash values), and caches of their...
6
1732
by: Broeisi | last post by:
Hello, I wrote the tiny progam below just to understand arrays and strings better. I have 2 questions about arrays and strings in C. 1. Why is it that when you want to assign a string to an...
89
5052
by: scroopy | last post by:
Hi, I've always used std::string but I'm having to use a 3rd party library that returns const char*s. Given: char* pString1 = "Blah "; const char* pString2 = "Blah Blah"; How do I append...
3
2304
by: rpapaiof | last post by:
if ($_SESSION=="M" && $_SESSION=="ara" ) echo "<tr><td width=150 valign=top>."Welcome Mr.$_SESSION&nbsp;&nbsp;$_SESSION<img src="a.jpg">.echo"</td>"echo"<td valign=top><center><font size=8...
95
4958
by: hstagni | last post by:
Where can I find a library to created text-based windows applications? Im looking for a library that can make windows and buttons inside console.. Many old apps were make like this, i guess ...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.