Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Special characters

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 02-18-2010   -   Original Discussion by sid1982
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:


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
Old Unix and Linux 02-19-2010   -   Original Discussion by sid1982
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 08:42 AM.