Sponsored Content
Top Forums Shell Programming and Scripting Remove special characters from string Post 302264536 by Franklin52 on Thursday 4th of December 2008 05:19:38 AM
Old 12-04-2008
Or simply with tr. Check the -d option in the man page.

Regards
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

remove special and unicode characters

Hi, How do I remove the lines where special characters or Unicode characters appear? The following query does work but I wonder if there is a better way. cat test.txt | egrep -v '\)|#|,|&|-|\(|\\|\/|\.' The following lines show that my query is incomplete. Warning: The word "*Khan" is... (1 Reply)
Discussion started by: shantanuo
1 Replies

2. UNIX for Dummies Questions & Answers

Remove directory that has special Characters

Hi All, I have a script written that creates a new directory within the shell program and if a parameter isn't passed in, it creates a strange directory name by mistake. So I have a directory like "-_12" and I am unable to remove it. I tried removing it using double quote and many others. I have... (12 Replies)
Discussion started by: datherriault
12 Replies

3. Shell Programming and Scripting

How to remove special characters from each line?

Hello, Is there a simpler way to remove special characters (color codes) from each lines in a log file? I use sed like in the example below but I think there should be a more simple way to achieve the same result: $ cat -vet file1 ^, , , , Maybe to convert the file somehow? ... (5 Replies)
Discussion started by: majormark
5 Replies

4. UNIX for Dummies Questions & Answers

How to Remove Special Characters

Dear Members, We have a file which contains some special characters. I need to replace these special character by a new line character(\n). The Special character is \x85. I am not sure what this character means and how we can remove it. Any inputs are greatly appreciated. Thanks... (5 Replies)
Discussion started by: sandeep_1105
5 Replies

5. UNIX for Dummies Questions & Answers

Files with special characters - how to remove

Hi, I have a directory that has a file which contained special characters in the filename. Can someone please advise how to remove the file, preferably with a rm -i ? Thanks in advance. Listing is as below: {oracle}> ls -1b bplog.bkup.001 bplog.bkup.002 bplog.bkup.003 bplog.bkup.004... (1 Reply)
Discussion started by: newbie_01
1 Replies

6. Shell Programming and Scripting

remove special characters

hello all I am writing a perl code and i wish to remove the special characters for text. I wish to remove all extended ascii characters. If the list of special characters is huge, how can i do this using substitute command s/specialcharacters/null/g I really want to code like... (3 Replies)
Discussion started by: vasuarjula
3 Replies

7. Shell Programming and Scripting

Remove string between two special characters

Hi All, I have a variable like AVAIL="\ BACK:bkpstg:testdb3.iad.expertcity.com:backtest|\ #AUTH:authstg:testdb3.iad.expertcity.com:authiapd|\ TEST:authstg:testdb3.iad.expertcity.com:authiapd|\ " What I want to do here is that If a find # before any entry, remove the entire string... (5 Replies)
Discussion started by: engineermayur
5 Replies

8. Shell Programming and Scripting

Remove the special characters from field

Hi, In source data few of columns are having special charates(like *) due to this i am not able to display the data into flat file.it's displaying the some of junk data into the flat file. source dataExample: Address1="XDERFTG * HYJUYTG" how to remove the special charates in a string (2 Replies)
Discussion started by: koti_rama
2 Replies

9. Shell Programming and Scripting

How to remove some special characters in a string?

Hi, I have string like this ="Lookup Procedure" But i want the output like this Lookup Procedure =," should be removed. Please suggest me the solution. Regards, Madhuri (2 Replies)
Discussion started by: srimadhuri
2 Replies

10. Shell Programming and Scripting

How to remove special characters?

Hi Gurus, I have file which contains some unicode charachator like "ü". I want to replace it with some charactors. I searched in internet and got command sed "s/ü/-/g", but I don't know how to type ü in unix command line. Please help me for this one. Thanks in advance (7 Replies)
Discussion started by: ken6503
7 Replies
PMKPC(1)						    BSD General Commands Manual 						  PMKPC(1)

NAME
pmkpc -- Packages metainformation management tool. SYNOPSIS
pmkpc [options] [modules] DESCRIPTION
pmkpc is a tool that gathers metainformation about installed libraries that provide pkg-config data files. It aims to be an alternative to the pkg-config tool. OPTIONS
The options are as follows: --version Display compatibility version relative to pkgconfig. --atleast-pkgconfig-version Check if compatibility version is at least equal or greater than the version provided as an argument. --modversion Display the version of the given library modules using one line for each version. --atleast-version Check if each module version is at least equal or greater than the version provided as an argument. --exact-version Check if each module version is equal to the version provided as an argument. --max-version Check if each module version is at least equal or smaller than the version provided as an argument. --exists Check if given library modules exists. --cflags Display pre-processor and compiler flags for given library modules. Duplicates values are automatically removed. --cflags-only-I Enable output filtering of compiler flags and keep include path. See output filtering section. --cflags-only-other Enable output filtering of compiler flags and keep other flags than include path. See output filtering section. --libs Display linker flags for given library modules. Duplicate values are automatically removed. --libs_only_l Enable output filtering of linker flags and keep library linking flags. See output filtering section. --libs_only_L Enable output filtering of linker flags and keep library path flags. See output filtering section. --libs_only_other Enable output filtering of linker flags and keep other flags than library linking and path flags. See output filtering section. --help Only for compatibility with pkg-config. Refers to this man page. --usage Display usage. --list-all Display all module names and descriptions. The following options have not been implemented yet: --uninstalled --debug --variable --define-variable --print-errors --silence-errors --errors-to-stdout OUTPUT FILTERING
As pkg-config has no standard specifications we determinated its behavior from pkg-config man page. The result is that filtering options can be accumulated. The default behavior is like if all filtering options were enabled. FILES
pmkcfgtool.dat config tool specific data. SEE ALSO
pkg-config(1) HISTORY
Initialy pmk was using pkg-config in a sub shell. Further, internal support was developed to improve the speed of data gathering. While studying the code of pkg-config we discovered some chunks of code that were unsafe (malloc return unchecked, use of strcpy without any check, ...). Knowing that, we decided to try to do a safer implementation and pmkpc was born. AUTHORS
Damien Couderc and Xavier Santolaria. BSD
January 20, 2004 BSD
All times are GMT -4. The time now is 02:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy