Sponsored Content
Top Forums Shell Programming and Scripting Hidden control characters in a Unix Text File! Post 22293 by peter.herlihy on Thursday 30th of May 2002 06:32:17 PM
Old 05-30-2002
Surely VI is okay for text file though?

Using ":set list" in vi will tell you any tab's (^I) and show whitespace by giving you the eol character '$'

Don't know how good this is for other 'special characters' etc.
 

10 More Discussions You Might Find Interesting

1. Programming

Identifying and removing control characters in a file.

What is the best method to identify an remove control characters in a file. Would it be easier to do this in Unix or in C. (0 Replies)
Discussion started by: oracle8
0 Replies

2. AIX

Randomly appearing control characters in text files

Hi, From some time, we have noticed that our ascii files have started corrupting due to the presence of some random control characters (^@, ^M, ^H, ^D). The characters appear randomly on any file after the process that creates the file finishes. If we rerun the process, the files re creates... (0 Replies)
Discussion started by: aakashahuja
0 Replies

3. UNIX for Advanced & Expert Users

Hidden Characters

Hello all, I have two files, that I suspect may contain hidden characters (EG, three spaces instead of a tab). Does anyone know of any tool that can display this (I have tried using diff, but I'm not quite sure it would do the job) (6 Replies)
Discussion started by: Khoomfire
6 Replies

4. Shell Programming and Scripting

display all possible control characters from .xml file in unix

Hi, I have a .xml file in unix. We are passing this file through a xml parser. But we are getting some control characters from input file and XML parser is failing for the control character in file.Now I am getting following error, Error at byte 243206625 of file filename_$.xml: Error... (1 Reply)
Discussion started by: fantushmayu
1 Replies

5. Shell Programming and Scripting

Removing "Hidden Characters" on a file

Hi - I'm having a problem with hidden characters on Linux. When I produced an output from Oracle database, there is a an extra "Hidden Character" included on the output. How can I remove that character? See below: The extra dollar sign is creating a new line on my .csv output file. I... (16 Replies)
Discussion started by: Jin_
16 Replies

6. Shell Programming and Scripting

Request for advise on how to remove control characters in a UNIX file extracted from top command

Hi, Please excuse for posting new thread on control characters, I am facing some difficulties in removing the control character from a file extracted from top command, i am able to see control characters using more command and in vi mode, through cat control characters are not visible ... (8 Replies)
Discussion started by: karthikram
8 Replies

7. UNIX for Dummies Questions & Answers

Control characters in UNIX

Hi, My files are showing some control characters in vi editor ^M ^@ and somtimes ^H I removed ^M with %s/^M//g command but how to represent ^@ and ^H e.g. for ^M it is hold ctrl then v and m.. Please help.. I am very new to unix.. (7 Replies)
Discussion started by: prabhat.diwaker
7 Replies

8. Shell Programming and Scripting

How to view the control characters in a file?

Hello, How can I view control and special characters of a text file?. For example, space, tabs, new line chars etc. Can I use hexdump for it? Thanks (3 Replies)
Discussion started by: reddyr
3 Replies

9. Red Hat

Special control characters in file

Hi Guys, We receive some huge files on to Linux server. Source system use FTP mechanism to transfer these files on our server. Occasionally one record is getting corrupted while transfer, some control characters are injecting into the file. How to fix this issue ? please advice ? Sample... (2 Replies)
Discussion started by: srikanth38
2 Replies

10. Shell Programming and Scripting

Need to strip control-A characters from a column in a file

Hi All, I currently have flat file with 32 columns. The field delimiter is cntl-A ( \x01). The file has been extracted from an oracle table using a datastage job. However, in the 6th field, the data contains additional control -A characters which came as a part of the table data. I need... (12 Replies)
Discussion started by: harsha1238
12 Replies
TFMTODIT(1)						      General Commands Manual						       TFMTODIT(1)

NAME
tfmtodit - create font files for use with groff -Tdvi SYNOPSIS
tfmtodit [ -sv ] [ -ggf_file ] [ -kskewchar ] tfm_file map_file font It is possible to have whitespace between a command line option and its parameter. DESCRIPTION
tfmtodit creates a font file for use with groff -Tdvi. tfm_file is the name of the TeX font metric file for the font. map_file is a file giving the groff names for characters in the font; this file should consist of a sequence of lines of the form: n c1 c2 ... where n is a decimal integer giving the position of the character in the font, and c1, c2,... are the groff names of the character. If a character has no groff names but exists in the tfm file, then it will be put in the groff font file as an unnamed character. font is the name of the groff font file. The groff font file is written to font. The -s option should be given if the font is special (a font is special if troff should search it whenever a character is not found in the current font.) If the font is special, it should be listed in the fonts command in the DESC file; if it is not special, there is no need to list it, since troff can automatically mount it when it's first used. To do a good job of math typesetting, groff requires font metric information not present in the tfm file. The reason for this is that TeX has separate math italic fonts whereas groff uses normal italic fonts for math. The additional information required by groff is given by the two arguments to the math_fit macro in the Metafont programs for the Computer Modern fonts. In a text font (a font for which math_fit- ting is false), Metafont normally ignores these two arguments. Metafont can be made to put this information in the gf file by loading the following definition after cmbase when creating cm.base: def ignore_math_fit(expr left_adjustment,right_adjustment) = special "adjustment"; numspecial left_adjustment*16/designsize; numspecial right_adjustment*16/designsize; enddef; For the EC font family, load the following definition after exbase (it is probably easiest to patch exbase.mf locally): def ignore_math_fit(expr left_adjustment,right_adjustment) = ori_special "adjustment"; ori_numspecial left_adjustment*16/designsize; ori_numspecial right_adjustment*16/designsize; enddef; The gf file created using this modified cm.base or exbase should be specified with the -g option. The -g option should not be given for a font for which math_fitting is true. OPTIONS
-v Print the version number. -s The font is special. The effect of this option is to add the special command to the font file. -kn The skewchar of this font is at position n. n should be an integer; it may be given in decimal, or with a leading 0 in octal, or with a leading 0x in hexadecimal. The effect of this option is to ignore any kerns whose second component is the specified charac- ter. -ggf_file gf_file is a gf file produced by Metafont containing special and numspecial commands giving additional font metric information. FILES
/usr/share/groff/1.21/font/devdvi/DESC Device description file. /usr/share/groff/1.21/font/devdvi/F Font description file for font F. SEE ALSO
groff(1), grodvi(1), groff_font(5) Groff Version 1.21 31 December 2010 TFMTODIT(1)
All times are GMT -4. The time now is 01:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy