Tcl_Concat(3) Tcl Library Procedures Tcl_Concat(3)__________________________________________________________________________________________________________________________________________________NAME
Tcl_Concat - concatenate a collection of strings
SYNOPSIS
#include <tcl.h>
CONST char *
Tcl_Concat(argc, argv)
ARGUMENTS
int argc (in) Number of strings.
CONST char * CONST argv[](in)
Array of strings to concatenate. Must have argc entries.
_________________________________________________________________DESCRIPTION
Tcl_Concat is a utility procedure used by several of the Tcl commands. Given a collection of strings, it concatenates them together into a
single string, with the original strings separated by spaces. This procedure behaves differently than Tcl_Merge, in that the arguments are
simply concatenated: no effort is made to ensure proper list structure. However, in most common usage the arguments will all be proper
lists themselves; if this is true, then the result will also have proper list structure.
Tcl_Concat eliminates leading and trailing white space as it copies strings from argv to the result. If an element of argv consists of
nothing but white space, then that string is ignored entirely. This white-space removal was added to make the output of the concat command
cleaner-looking.
The result string is dynamically allocated using Tcl_Alloc; the caller must eventually release the space by calling Tcl_Free. |
SEE ALSO |
Tcl_ConcatObj |
KEYWORDS |
concatenate, strings |
Tcl 7.5 Tcl_Concat(3)
Check Out this Related Man Page
Tcl_Concat(3) Tcl Library Procedures Tcl_Concat(3)__________________________________________________________________________________________________________________________________________________NAME
Tcl_Concat - concatenate a collection of strings
SYNOPSIS
#include <tcl.h>
const char *
Tcl_Concat(argc, argv)
ARGUMENTS
int argc (in) Number of strings.
const char *const argv[] (in) Array of strings to concatenate. Must have argc entries.
_________________________________________________________________DESCRIPTION
Tcl_Concat is a utility procedure used by several of the Tcl commands. Given a collection of strings, it concatenates them together into a
single string, with the original strings separated by spaces. This procedure behaves differently than Tcl_Merge, in that the arguments are
simply concatenated: no effort is made to ensure proper list structure. However, in most common usage the arguments will all be proper
lists themselves; if this is true, then the result will also have proper list structure.
Tcl_Concat eliminates leading and trailing white space as it copies strings from argv to the result. If an element of argv consists of
nothing but white space, then that string is ignored entirely. This white-space removal was added to make the output of the concat command
cleaner-looking.
The result string is dynamically allocated using Tcl_Alloc; the caller must eventually release the space by calling Tcl_Free.
SEE ALSO
Tcl_ConcatObj
KEYWORDS
concatenate, strings
Tcl 7.5 Tcl_Concat(3)
hi
I have a file, I need to concatenate depening on the no of columns i need to concatenate.
for example i need to concatenate field1,filed34,field2( no of columns is not always 3, it can be any number of fields)
concat.ksh field1 field34 field2
how to achieve this, is there any argv ,argc... (10 Replies)
Hi All,
i have a zip file like the format
794051400123|COM|24|0|BD|R|99.98
794051413727|COM|11|0|BD|R|28.99
794051415622|COM|23|0|BD|R|28.99
883929004676|COM|0|0|BD|R|28.99
794051400123|MOM|62|0|BD|R|99.98
794051413727|MOM|4|0|BD|R|28.99
794051415622|MOM|80|0|BD|R|28.99
... (30 Replies)
I have a string "disk0 with a trailing white space after it" but I want to get rid of this white space from right to left so that I am left with "disk0" only.
Using sed 's/ $//g' doesn't seem to work
Any ideas ?
Thanks (5 Replies)
Is there a way to concatenate two strings, where the first string is "-n" and there is a space between the "-n" and the second string? Below are some examples of what I tried.
#!/bin/sh
var1=test
#working without dashes:
var2="n $var1"
echo $var2
var2=n" "$var1
echo $var2
var2="n... (5 Replies)
Hello All,
First post. I've been struggling with the following:
Given a char* string, I need to construct an "int argc, char *argv" style structure. What I'm struggling with most is handling escaped-whitespace and quotes.
e.g. the string:
char *s = "hello world 'my name is simon'... (10 Replies)
I'm trying to extract all the lines between 2 strings (including the lines containing the strings)
To make the strings unique I need to include white space if possible. I'm not certain how to do that.
sed -n '/ string1 /,/string2/p' infile > outfile & (4 Replies)
Hi,
I have a file with rows like below delimited with pipe (|)
I want to remove all the leading and trailing white space from each and every fields keeping the delimiter intact.
I have tired this
sed 's/*//g;s/*$//g'
but the result is incorrect
it is removing a whitespace from... (6 Replies)
I'm working on my own pow function and I need to make a copy of *argv but
I think that I am having trouble with the size of *argv and the size of any array that I
make. The code below isn't working for me. and I want to accept any number no
matter the size with pow -f 2 2. I was working out... (16 Replies)
In any given file, wherever a certain data block exists I need to concatenate the values(text after each "=" sign) from that block. in that block. The block starts and ends with specific pattern, say BEGIN DS and END DS respectively. The block size may vary. A file will have multiple such blocks.... (12 Replies)
I have a file with
<suit:run date="Trump Tue 06/19/2012 11:41 AM EDT" machine="garg-ln" build="19921" level="beta" release="6.1.5" os="Linux">
Need to find word "build" then
extract build number, which is 19921 also
release number, which is 6.1.5 then
concatenate them to one variable as... (6 Replies)
Hi,
I have the next problem, i am triying to concatenate two variables with white spaces at the cornes, but the shell deletes them.
For example i have the next code:
A="Hello "
B="Hello"
echo $A$B
output: Hello Hello
You can see only one space between the words, and i put 5... (5 Replies)
hi all
could you please help me to concatenate two colomns and separate them by "-"
the two colomns to concatenate are colomuns 1 and 3 of a very bif file
clomn 1 is chr, 2 is snp and 3 is bp
the new colomn is chr_B
input file :
1 rs1111 10583
1 rs1891 10611
1 rs1807 ... (13 Replies)
Not sure how to ask this question. I want concatenate strings and variable recursively into new variable. For example:
infile01=/dir/subfolder/file01.txt
infile02=/dir/subfolder/file02.txt
infile03=/dir/subfolder/file03.txt
for i in {01..03}
do
u=${"infile"$i}
echo $u
doneI got error... (7 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
First, create a "hello world" program that prints "Hello World". But NOW, instead use argc to verify that a... (9 Replies)