Sponsored Content
Full Discussion: Delete special characters
Top Forums Shell Programming and Scripting Delete special characters Post 303015148 by RudiC on Thursday 29th of March 2018 03:09:57 AM
Old 03-29-2018
Code:
sed
'            enclose First parameter / Script
/.../        for lines only matching ... pattern
{            start compound statement
s/.../.../   substitute pattern(s)
;            separate Statements
}            end compound Statement
'            end parameter

These 2 Users Gave Thanks to RudiC For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

special characters

I have one file which is named ^? ( the DEL character ) I'd like to know how to rename or copy the file by using its i-node number TYIA (2 Replies)
Discussion started by: nawnaw
2 Replies

2. UNIX for Dummies Questions & Answers

How to delete a file with special characters

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)
Discussion started by: yveslagace
5 Replies

3. Shell Programming and Scripting

sed delete pattern with special characters

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)
Discussion started by: stinkefisch
5 Replies

4. Shell Programming and Scripting

Special characters

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)
Discussion started by: sid1982
1 Replies

5. Shell Programming and Scripting

how to delete special characters from the file content

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)
Discussion started by: kanakaraju
2 Replies

6. UNIX for Dummies Questions & Answers

How to see special characters?

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)
Discussion started by: gvj
6 Replies

7. Shell Programming and Scripting

special characters

Hey guys, I'm trying to replace "]Facebook" from the text but sed 's/]Facebook/Johan/g' is not working could you please help me with that? (6 Replies)
Discussion started by: Johanni
6 Replies

8. Shell Programming and Scripting

Replace special characters with Escape characters?

i need to replace the any special characters with escape characters like below. test!=123-> test\!\=123 !@#$%^&*()-= to be replaced by \!\@\#\$\%\^\&\*\(\)\-\= (8 Replies)
Discussion started by: laknar
8 Replies

9. Shell Programming and Scripting

Look for substrings with special characters

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)
Discussion started by: sheetalk
2 Replies

10. UNIX for Advanced & Expert Users

Need help to delete special characters exists only at the end of the each record in UNIX file?

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
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)
All times are GMT -4. The time now is 01:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy