06-13-2003
ASCII file
I've been having trouble trying to read an ASCII file. I'm on an IRIX machine, by the way. I've tried "cat" and I get a bunch of unreadable text, and the "string" command gets the "Command not Found" error. Please advise.
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm writing a script that takes a filename as an argument, which determines the "file type" of the file. I want to know if there is any command I can use to determine if a file is ASCII type, thanks all for giving a help. (11 Replies)
Discussion started by: popo
11 Replies
2. Shell Programming and Scripting
file abc
abc: English text
I want to convert the above into
file abc
file: ascii text (1 Reply)
Discussion started by: laknar
1 Replies
3. Shell Programming and Scripting
I want to verify the file is Binary or ascii file and accordingly I want to switch the program with ret code
ie 0 or success and 1 for failure
Can any one help me is this a correct syntex...i am getting error
#!/bin/ksh
$file filename
if
echo "ascii fie Found"
else
echo " binary... (6 Replies)
Discussion started by: u263066
6 Replies
4. HP-UX
Hello All,
I need to read the data inside one file who's format is ascii text. I got the file format when I use file command on the file.
file <filename>
filename ascii text
please help me on this.
Thanks (8 Replies)
Discussion started by: gyanusoni
8 Replies
5. Shell Programming and Scripting
Hi gurus,
I have a file in unix with ascii values. I need to convert all the ascii values in the file to ascii characters. File contains nearly 20000 records with ascii values. (10 Replies)
Discussion started by: sandeeppvk
10 Replies
6. Shell Programming and Scripting
I have a file in below format(ISO ) and to be convert to readable (.txt/Ascii) format .send me the commands/code please
sample as follows
2043010101167157001190002010011120000000002144300000000000000000000 01022_ - %rE@
U...ug 47 56 d %rE@ 01022_ - $5
fy ... (1 Reply)
Discussion started by: nalakaatslt
1 Replies
7. Red Hat
Hello all,
To give you all a little bit of background. We recently migrated from HP-UX to Redhat Linux and one of the command I used to run on HP-UX to convert an EBCDIC file to ASCII file isn't working on Linux. The code is as follow:
cat workout2.dat | dd cbs=250 conv=block conv=ascii... (3 Replies)
Discussion started by: sethmj
3 Replies
8. UNIX for Dummies Questions & Answers
Hi Folks,
While transferring file from FTP software like Filezilla the files gets corrupted.
Is there any way I can check if the recently transferred file is in ASCII and not corrupted. I have tried using file -i filename command which does tell if the file character set is ASCII or binary... (6 Replies)
Discussion started by: Khan28
6 Replies
9. Shell Programming and Scripting
Hi All,
I have an ascii file in which few columns are having hex values which i need to convert into ascii. Kindly suggest me what command can be used in unix shell scripting?
Thanks in Advance (2 Replies)
Discussion started by: HemaV
2 Replies
10. UNIX for Beginners Questions & Answers
Hi Team,
I am having 100 EBCDIC files (i.e. DAT extension) and need to convert them into ASCII File by unix shell script.
I tried with DD Command but its not providing output as expected.
Sample Text:
------------------
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Expected Output:... (2 Replies)
Discussion started by: JSM
2 Replies
LEARN ABOUT OPENDARWIN
fc-cat
FC-CAT(1) FC-CAT(1)
NAME
fc-cat - read font information cache files
SYNOPSIS
fc-cat [ -rvVh ] [ --recurse ] [ --verbose ] [ --version ] [ --help ]
[ [ fonts-cache-%version%-files ] [ dirs ] ... ]
DESCRIPTION
fc-cat reads the font information from cache files or related to font directories and emits it in ASCII form.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
-r Recurse into subdirectories.
-v Be verbose.
-h Show summary of options.
-V Show version of the program and exit.
SEE ALSO
fc-cache(1) fc-list(1) fc-match(1) fc-pattern(1) fc-query(1) fc-scan(1)
The fontconfig user's guide, in HTML format: /usr/share/doc/fontconfig/fontconfig-user.html.
AUTHOR
This manual page was written by Patrick Lam <plam@mit.edu>.
Aug 13, 2008 FC-CAT(1)