473,657 Members | 2,411 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 2164
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
7267
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? STL set, map? Could you give me a little code example? Thank you.
10
9016
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 think!!). But I want to use malloc. Each string is at most 50 characters long, and there may be zero to thousands of lines. How do I actually start the array? I have seen char **array etc. At first I tried char *array but I think that gives 50...
9
5259
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 w1 and w2 make up the first string and, w3 and w4 make up the second string. I do not want to allocate memory, then put the words together to create a string only to facilitate strcmp() comparison. My question; Does anyone know how to get the...
3
1457
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 to the date "12/28/2005". and I don't know how to concatenate them since "+" won't work after I convert them. Thanks, Alpha if (result == "00") { char separator = {','}; char intSep = {'.'};
1
1906
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 keys. Caching keys helps to avoid recalculation of a string's hash value. So, when two strings need to be compared, only their cached keys are compared, which improves performance as there is no need for byte by byte comparison.
6
1742
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 character array that you must use the strcpy() function?
89
5119
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 the contents of pString2 to pString? (giving "Blah Blah Blah")
3
2313
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 color=blue >Thank You For Your Visit</font></center><form><font size=4 ><b>Upload Your File &nbsp;</font><input type='file'><br><br><br><br><br><select><option>Armenia</option><option>Iran</option><option>USA</option></select><input type=submit...
95
5046
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 ____________________________________ | | | ------------------ | | | BUTTON | | | ...
0
8399
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8312
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8504
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6169
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.