Special characters | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Special characters

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-18-2010
sid1982 sid1982 is offline
Registered User
 
Join Date: Feb 2010
Last Activity: 27 February 2010, 2:14 PM EST
Location: New York City
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
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 update was at 08:18 PM ----------

I got it. It is an octal representation of "*" (not including double quotes)

What is the best ways to remove this octal character from a file?
Sponsored Links
    #2  
Old 02-19-2010
abubacker abubacker is offline
Registered User
 
Join Date: Feb 2010
Last Activity: 7 October 2011, 8:33 AM EDT
Location: /root
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Usually vi does not put any characters automatically , so I guess you did some thing
in your ~/.vimrc file. Better check your configurations.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sed with many special characters lakanino Shell Programming and Scripting 1 08-13-2009 05:05 PM
sed with special characters itzz.me Shell Programming and Scripting 4 04-06-2009 10:34 PM
get rid of special characters vakharia Mahesh UNIX and Linux Applications 4 07-29-2008 02:36 PM
special characters nawnaw UNIX for Dummies Questions & Answers 2 05-18-2004 04:17 PM
awk/sed with special characters apalex Shell Programming and Scripting 5 05-06-2002 05:40 PM



All times are GMT -4. The time now is 01:44 AM.