05-05-2009
Removing ^Z Character in a File
Hi,
I am having a pipe (|) delimited file which is having ^Z character in the middle of the text.Could anyone please suggest me how to remove this ^Z Character from the file.I almost used all the ideas posted in this site but none of them worked in my case since tis ^Z character is not coming at the EOF but in the middle of the text.
please help.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I am attempting to remove all the ^M characters in a file in VI.
The command I am using is
:1,$s/^V^M//g
but it doesn't work, saying 'substitute pattern match failed'.
Any ideas why?
Jules (2 Replies)
Discussion started by: julesinbath
2 Replies
2. UNIX for Dummies Questions & Answers
HI i am having a file this
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1234567890
1234567890
1234567890
1234567890
I want to make this file as
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1456789023
1456789023
1456789023
1456789023
just take the 2nd and 3rd position and put it... (5 Replies)
Discussion started by: arunkumar_mca
5 Replies
3. Shell Programming and Scripting
How can I remove the last character from each line of a file?
This must be done without "funny" characters, as I want to transfer the code to/from Windows.
Any ideas? (17 Replies)
Discussion started by: cjhancock
17 Replies
4. UNIX for Dummies Questions & Answers
Dear Members,
Problem is suppose i have 50 lines in a file, 40 lines last character is "\" and the remaining 10 lines are good(i mean these 10 lines do not have "\" character)
How can i remove this character from the file.
Thanks (1 Reply)
Discussion started by: sandeep_1105
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a Linux file which has content as sh (0 Replies)
Discussion started by: bhuvanas
0 Replies
6. Shell Programming and Scripting
Hi,
My file has this special character "^M"
I would like to remove this characters.
eg:
abc,abc,^M
i tried using sed but doesnt work.
i used octal dump command to see special character it returns following:
015
\r
Appreciate your reply. (6 Replies)
Discussion started by: pinnacle
6 Replies
7. Shell Programming and Scripting
I have a file like this:
DDD_ABCDE2AB2_1104081408.104480
I need to remove the 1 after the . in the file name so that it reads:
DDD_ABCDE2AB2_1104081408.04480
Having some difficulty getting the command to work. I tried using
cut -d 26
but that just doesn't work. (3 Replies)
Discussion started by: bbbngowc
3 Replies
8. UNIX for Dummies Questions & Answers
I need help removing the last character of every line if it is a certain character. For example I need to get rid of a % character if it is in the last position.
Input:
aaa%
%bbb
ccc
d%dd%
Output should be:
aaa
%bbb
ccc
d%dd
I tried this but it gets rid of all of the % characters.... (5 Replies)
Discussion started by: raptor25
5 Replies
9. Shell Programming and Scripting
Hi below is my file.
cat input.dat
101,abhilash,1000
102,prave
en,2000
103,partha,4
000
10
4,naresh,5000
(its just a example file)
and my output should be:
101,abhilash,1000
102,praveen,2000
103,partha,4000
104,naresh,5000
below is my code
cat input.dat |tr -d '\n' >... (6 Replies)
Discussion started by: abhilash_nakka
6 Replies
10. Shell Programming and Scripting
Hello guys,
I would need to remove the last character ")" of a specific line. This can be from any line. Your help is appreciated. Below is the line.
HOSTNAME=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP))
Please help. (6 Replies)
Discussion started by: sang8g
6 Replies
LEARN ABOUT OPENSOLARIS
charmap
gnome-character-map(1) User Commands gnome-character-map(1)
NAME
gnome-character-map, gucharmap, charmap - insert special characters into a document
SYNOPSIS
gnome-character-map | gucharmap | charmap [--font=string] [gnome-std-options]
DESCRIPTION
The Character Map application enables you to select characters from a character table, then combine the characters into a text string with
standard characters. You can insert the text string that you create into other applications, such as text editor documents.
Character Map provides accented characters, mathematical symbols, special symbols, and punctuation marks. Many of the characters are not
available on a standard keyboard.
Note: The gucharmap application also provides a library called libgucharmap. This library is licensed under GPL. Please see the license
file at /usr/share/doc/SUNWgnome-character-map/COPYING.bz2 for implications when writing a program which uses this library.
OPTIONS
The following options are supported:
--font=string Specify the font name and point size that you want to use to display the characters in the character table, when
you start Character Map.
gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more information.
EXAMPLES
Example 1: Launching Character Map
example% gnome-character-map
Example 2: Launching Character Map With Specified Font Name and Point Size
example% gnome-character-map --font="bitstream vera sans italic 20"
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/gucharmap
Executable for Character Map.
/usr/bin/charmap
Symbolic link to gucharmap.
/usr/bin/gnome-character-map
Symbolic link to gucharmap.
/usr/share/doc/SUNWgnome-character-map/COPYING.bz2
Location of license file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-character-map |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO
bzip2(1), attributes(5), gnome-std-options(5)
Character Map Manual
Latest version of the GNOME Desktop User Guide for your platform.
http://www.fsf.org/licensing/
NOTES
Written by Glynn Foster, updated by Halton Huo, Sun Microsystems Inc., 2003, 2007, 2008.
SunOS 5.11 16 Sep 2008 gnome-character-map(1)