02-01-2008
I used the translate commands as follows:
1) tr -c ' a-zA-Z0-9,\n' ' ' < inputfile > outputfile ==> No result
2) tr -c '[:print:][:cntrl:]' ' ' < inputfile > outputfile ==>
The second command replaced one of the invalid character with space but retained all others. When I again ran the command on the resulted file, the complete files.(input as well as output.)
Please tell me some other combinations.
===================================================
Among the following characters, ~æ£ÇÄ, Ç was replaced.
===================================================
Thanks in advance.
Kanu
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am working on AIX. We ftp files to a database. The flat files are having thousands of records and each record is having some 50 to 60 characters(there are fields having certain character length). In addition to some valid ascii characters some invalid characters like Å, å, Ä, ä or pipes creep in which... (5 Replies)
Discussion started by: kanu_pathak
5 Replies
2. Programming
This is a pretty straight-forward question. Within a program of mine, I have a string that's going to be used as a filename, but it might have some invalid characters in it that wouldn't be valid in a filename. If there are any invalid characters, I want to get rid of them and essentially squeeze... (4 Replies)
Discussion started by: cleopard
4 Replies
3. Shell Programming and Scripting
Hi,
I have to write s script to check an input file for invalid characters. In this script I have to find the exact line of the invalid character. If the input file contain 2 invalid character sat line 10 and 17, the script will show the value 10 and 17. Any help is appreciated. (3 Replies)
Discussion started by: beginner82
3 Replies
4. UNIX for Dummies Questions & Answers
there is a file is generated from my program due to undefined filename.
-rw-r--r-- 1 angie angie 8644055 Jun 22 09:17 Ô$ÿÿÿÿÿÆ
may i know how to delete this file..??? thanks in advance... :) (5 Replies)
Discussion started by: chxxangie
5 Replies
5. Shell Programming and Scripting
HI,
I have a source file which has the below data.
Tableid,table.txt
sourceid,1,2,3,4,5,6
targetid,1,2,3,4,5,6
Tableid,table
sourceid,1,2,3,4,5,6
targetid,1,2,3,4,5,6
Tableid,table.txt
sourceid,1,2,3,4,5,6
targetid,1,2,3,4,5,6
Tableid,table
sourceid,1,2,3,4,5,6
targetid,1,2,3,4,5,6... (6 Replies)
Discussion started by: shruthidwh
6 Replies
6. Shell Programming and Scripting
Hi All -
I'm building a script wherein it is design to remove characters that are not accepted on a non-unicode database. Examples are the following: ï,¿,½,Â,é, etc.
I can easily sed those characters one-by-one but I there's a problem when other unicode characters are found. Is there any way to... (1 Reply)
Discussion started by: Jin_
1 Replies
7. Shell Programming and Scripting
Hi All,
How to validate the 4th column,it is date column in the file, if it valid move to valid file else moved invalid file.
9f680174-cb87|20077337254|0|20120511|N
9f680174-cb88|20077337254|0|20120534|N
i want two file valid.txt and invalid.txt
Thanks, (7 Replies)
Discussion started by: bmk
7 Replies
8. UNIX for Dummies Questions & Answers
Hello,
Can any one help me in below query to search all the invalid characters that UNIX cannot recognize from a file. can we do anything with the help of grep command or any other commands.
Also, i am not sure what are the invalid characters present in the file.
Many thanks in advance.
... (6 Replies)
Discussion started by: schandru
6 Replies
9. Shell Programming and Scripting
My Input file is fixed length record ends with . as end of the line and the character length is 4156
Example:
12234XYZ TY^4253$+00000-00000...........
I need to check is there any control characters(like ^M,^Z)
The line will be splitted
awk
'{id=substr($0,1,5)
nm=substr($0,6,3)... (2 Replies)
Discussion started by: dineshaila
2 Replies
10. UNIX for Beginners Questions & Answers
Hello guys,
Here i am writing a script to check for a valid url from a file,i am getting the valid url & i print it in a file and i want to print the invalid url also.how to do that?
#here is my script
if
then
URL=$(grep -E -o... (2 Replies)
Discussion started by: Meeran Rizvi
2 Replies
la280of(8) System Manager's Manual la280of(8)
NAME
la280of - Filter for the Japanese LA280 printer
SYNOPSIS
/usr/lbin/la280of [-c] [-h host] [-i indent] [-l length] [-L locale] [-n login] [-w width] [accounting_file]
OPTIONS
Prints control characters. Specifies the host name of the job owner. This name can contain Japanese characters. Specifies the amount of
indentation. The default value is no (no indentation). Specifies the page length in lines. The default value is 66. Specifies the codeset
used by the printer. This value must be a valid locale name. The default value is ja_JP.deckanji. Specifies login name of the job owner.
This name can contain Japanese characters. Specifies the page width in columns. The default value is 132.
OPERANDS
Specifies the file to record accounting information.
DESCRIPTION
The la280of filter is used to filter text data for the Japanese LA280 printer. The filter handles the device dependencies of the printer
and performs accounting functions. At print job completion time, accounting records are written to the file specified by the af field in
the /etc/printcap file.
The la280of filter can handle plain text files and files that have been preprocessed by nroff. Either kind of file can contain non-ASCII
characters. The la280of filter translates nroff control sequences for underlining, superscripting, and subscripting into the proper control
sequences for the LA280 printer.
The la280of filter can be the specified filter in both the of and the if fields in the /etc/printcap file. For more information on these
fields, see printcap(4).
The LA280-J printer can be configured to use the software on-demand loading (SoftODL) mechanism to print user-defined characters (UDCs).
See i18n_printing(5) for more information about SoftODL.
To enable the SoftODL mechanism, set the ys value in /etc/printcap to 256. You can also set the default SoftODL database, style and size
through the odldb and odlstyle options for the ya field. If you set the yt value, set it to fifo. Refer to printcap(4) for more informa-
tion on these fields and associated options.
NOTES
The lpr command supports a number of options associated with printer localization features. The following can be used with the la280of
filter: To specify the SoftODL database path To specify SoftODL font style and size
For more information on the lpr -A option, refer to lpr(1).
ERRORS
The lf field (default value is /dev/null) in the /etc/printcap file specifies the name of the error log.
SEE ALSO
Commands: lpr(1), pr(1), lpd(8), pac(8)
Files: printcap(4)
Others: i18n_printing(5)
la280of(8)