sed
' enclose First parameter / Script
/.../ for lines only matching ... pattern
{ start compound statement
s/.../.../ substitute pattern(s)
; separate Statements
} end compound Statement
' end parameter
I don't now exactly how I did it, but I created a file named " -C "
cexdi:/home1 $ls -lt
total 1801336
-rw------- 1 cexdi ced-group 922275840 23 mars 10:03 -C
How do I delete this file ?
cexdi:/home1 $rm -C
rm: invalid option -- C
Syntax : rm filename ...
Doesn't work...... (5 Replies)
Hi all,
I have the following lines
<b>A gtwrhwrthwr text hghthwrhtwrtw </b><font color='#06C'>; text text (text)
<b>B gtwrhwrthwr text hghthwrhtwrtw </b><font color='#06C'>; text text (text)
<b>J gtwrhwrthwr text hghthwrhtwrtw </b><font color='#06C'>; text text (text)
and I would like to... (5 Replies)
When I open a file in vi, I see the following characters:
\302\240
Can someone explain what these characters mean. Is it ASCII format? I need to trim those characters from a file.
I am doing the following:
tr -d '\302\240'
---------- Post updated at 08:35 PM ---------- Previous... (1 Reply)
Hello Team,
Any one suggest how to delte the below special character from a file which is having one column 10 rows of same below content.
----------------------------------------
Kosten|bersicht gemd_ ' =Welche Kosten kvnnen... (2 Replies)
Hi all,
I was wondering how can i see the special characters like \t, \n or anything else in a file by using Nano or any other linux command like less, more etc (6 Replies)
i need to replace the any special characters with escape characters like below.
test!=123-> test\!\=123
!@#$%^&*()-= to be replaced by
\!\@\#\$\%\^\&\*\(\)\-\= (8 Replies)
Hello gurus,
I have a lookup table
cat tmp1
\\\erw``~ 1
^774574574565665f\] 2
()42543^
and I`m trying to compare a bunch of strings such that, either the lookup table column 1, or the string to be looked up are substrings of each other (and return the second lookup column if yes).
... (2 Replies)
Hi,
I have a file in unix with 15 columns.It consists special characters(#,$,^M,@,*,% etc)at the end of the each record.I want to remove these special characters.I used the following:
Sed -e 's/ /g;s/ */ /g'
. But It is removing special characters exists everywhere in the file(begining,middle... (24 Replies)
Discussion started by: rakeshp
24 Replies
LEARN ABOUT ULTRIX
dwtcstrcat
DwtCStrcat(3Dwt)DwtCStrcat(3Dwt)Name
DwtCStrcat, DwtCStrncat - Appends a copy of a compound-string to the end of another compound-string.
Syntax
DwtCompString DwtCStrcat(compound_string1,
compound_string2)
DwtCompString compound_string1, compound_string2;
DwtCompString DwtCStrncat(compound_string1,
compound_string2,
num_chars)
DwtCompString compound_string1, compound_string2;
int num_chars;
Arguments
compound_string1
Specifies a compound-string to which a copy of compound_string2 is appended.
compound_string2
Specifies a compound-string that is appended to the end of compound_string1.
num_chars Specifies the number of characters to be appended to the specified compound-string. If num_chars is less than the length of com-
pound_string2, the resulting string will not be a valid compound-string.
Description
The DwtCStrcat function appends compound_string2 to the end of compound_string1 and returns the resulting string. The original strings are
preserved. The space for the resulting compound-string is allocated within the function. After using this function, you should free this
space by calling XtFree.
The DwtCStrncat function appends no more than the number of characters specified in num_chars, which includes tag and length sections of
the compound-string.
Return Values
These functions return a pointer to the resulting compound-string.
See Also
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtCStrcat(3Dwt)