11-17-2010
Quote:
Originally Posted by
superdelic
Hi, all.
I have a need to take a flat file FTP'd from Windows to Unix and convert it for loading into a MySQL database without manual intervention. However, some characters are "fancified" (e.g. the fancy Beginning and End double-quotes from Windows) that show up as codes using vi. I need to convert these to regular text in Unix. The codes are below:
<85>=...
<92>=‘
<93>=“
<94>=”
Example Text in WordPad
===================
(like a telephone, except “0” at top left
Same Text in Unix
===================
(like a telephone, except <93>0<94> at top left
[Note the difference in the double quotes.]
The codes show up in Putty vi as blue, so I know it recognizes they are metacharacters, but none of the methods I've tried in Unix (sed, awk) to search for metacharacters seems to find these.
Why not provide some real samples and your expect O/P for easily understanding your question?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I convert unix text files into readable text for windows.
Dave (1 Reply)
Discussion started by: nucca
1 Replies
2. Solaris
I have a Windows 2000 Terminal, which I want to convert into Solaris 10. I am connected to windows terminal remotely via iLO and then inserted the solaris DVD in my local drive. Now when I connect to Windows machine from 'RDP' - I can see local DVD in there - and IF I then reboot remote machine... (1 Reply)
Discussion started by: panchpan
1 Replies
3. UNIX for Dummies Questions & Answers
Hello Gurus,
I have a text file containing nearly 12,000 tab delimited characters with 4000 rows. If the file size is small, excel can convert the text into coloumns. However, the file that I have is very big. Can some body help me in solving this problem?
The input file example,
... (6 Replies)
Discussion started by: Unilearn
6 Replies
4. Shell Programming and Scripting
Hello:
(exp) : match "exp",the matched text is stored in auto named arrays.
How can I get the matched text ? What is the name of the auto named arrays on linux shell ? (4 Replies)
Discussion started by: 915086731
4 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I'm hoping this is an easy question, but I'm having a weird problem trying to simply copy and paste text from MS Windows (XP) Notepad and then pasting into vi or vim in AIX. When I type "oslevel" I get "5.3.0.0". The problem is that once the text is pasted, there are sections of text... (2 Replies)
Discussion started by: PlainInverted
2 Replies
6. Shell Programming and Scripting
hey im trying to get the hex diffrences in two files ones called new and the other is named old i want it to phrase into my script,
heres how i need the info:
input='\x'94 #the new 1 byte hex change
offset=00000000 #the 1st offset of the difference
patch
unset input offset
input='\x'34... (5 Replies)
Discussion started by: lewisdenny
5 Replies
7. Shell Programming and Scripting
Hi guys,
I am been banging my head for days on something that appears too simple to be so hard for me.
I have this bash script which I used just fine on my windows PC.
I took this file over to my Macbook and try to run it and it fails like no tomorrow.
This is the contents of the file:... (3 Replies)
Discussion started by: richsark
3 Replies
8. Windows & DOS: Issues & Discussions
Hmmm I think I found the correct subforum to ask my question...
I have some text files that I prepared in vi some time ago, and now I want to open and edit them with Windows Notepad. I don't have a Unix terminal at the moment so I need to do the conversion in Windows. Is there a way to do this?... (1 Reply)
Discussion started by: frys_hp
1 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I have some text files that I prepared in vi some time ago, and now I want to open and edit them with Windows Notepad. I don't have a Unix terminal at the moment so I need to do the conversion in Windows. Is there a way to do this? Or just reinsert thousands of line breaks again :eek: ? (2 Replies)
Discussion started by: frys_hp
2 Replies
10. Shell Programming and Scripting
Hello all
i have utf-8 file that i try to convert to WINDOWS-1251 on linux
without any success
the file name is utf-8 when i try to do :
file -bi test.txt
it gives me :
text/plain; charset=utf-8
when i try to convert the file i do :
/usr/bin/iconv -f UTF-8 -t WINDOWS-1251 test.txt >... (1 Reply)
Discussion started by: umen
1 Replies
FONT(6) Games Manual FONT(6)
NAME
font, subfont - external format for fonts and subfonts
SYNOPSIS
#include <libg.h>
DESCRIPTION
Fonts and subfonts are described in cachechars(2).
External fonts are described by a plain text file that can be read using rdfontfile. The format of the file is a header followed by any
number of subfont range specifications. The header contains two numbers: the height and the ascent, both in pixels. The height is the
inter-line spacing and the ascent is the distance from the top of the line to the baseline. These numbers are chosen to display consis-
tently all the subfonts of the font. A subfont range specification contains two or three numbers and a file name. The numbers are the
inclusive range of characters covered by the subfont, with an optional starting position within the subfont, and the file name names an
external file suitable for rdsubfontfile. The minimum number of a covered range is mapped to the specified starting position (default
zero) of the corresponding subfont. If the subfont file name does not begin with a slash, it is taken relative to the directory containing
the font file. Each field must be followed by some white space. Each numeric field may be C-format decimal, octal, or hexadecimal.
External subfonts are represented in a more rigid format that can be read and written using rdsubfontfile and wrsubfontfile (see subfal-
loc(2)). The format for subfont files is: a bitmap containing character images, followed by a subfont header, followed by character infor-
mation. The bitmap has the format for external bitmap files described in bitmap(6). The subfont header has 3 decimal strings: n, height,
and ascent. Each number is right-justified and blank padded in 11 characters, followed by a blank. The character info consists of n+1
6-byte entries, each giving the Fontchar x (2 bytes, low order byte first), top, bottom, left, and width. The x field of the last Fontchar
is used to calculate the bitmap width of the previous character; the other fields in the last Fontchar are irrelevant.
Note that the convention of using the character with value zero (NUL) to represent characters of zero width (see bitblt(2)) means that
fonts should have, as their zeroth character, one with non-zero width.
FILES
/lib/font/bit/*
font directories
SEE ALSO
graphics(2), bitblt(2), cachechars(2), subfalloc(2)
FONT(6)