Sponsored Content
Top Forums UNIX for Advanced & Expert Users Illegal character in prototype Perl error in AIX server Post 302648963 by Corona688 on Wednesday 30th of May 2012 02:53:53 PM
Old 05-30-2012
UNIX doesn't use \r\n to terminate lines, just \n, so the carriage return is being taken as part of the string and not as whitespace. I don't know why some systems didn't have a problem, but this is a very very common thing when blithely copying in text files edited with Microsoft Notepad and the like.

Code:
# Remove carriage returns from a file
tr -d '\r' < wingarbage > unixtext

This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What's the difference between Segmentation fault and Bus error and Illegal...?

What's the difference between Segmentation fault and Bus error and Illegal instruction? Sometimes I got the one, and sometimes i got another, what are their differences? Segmentation fault (core dump)? Bus error (core dump)? Illegal instruction (core dump) Thanks Daniel (2 Replies)
Discussion started by: lakeat
2 Replies

2. AIX

NIM thread error in AIX 5.3 server !

Friends , In our production server , we are using oracle10g in IBM AIX 5.3 unix server. From last 7 days , I got the below error : ------------------------------ LABEL: TS_NIM_ERROR_STUCK_ IDENTIFIER: 864D2CE3 Date/Time: Mon Sep 7 19:34:38 NOVST 2009 Sequence Number:... (1 Reply)
Discussion started by: shipon_97
1 Replies

3. AIX

Transferring files from one AIX server to another AIX server in binary mode

Hi, I am a newbie to AIX. We have 2 AIX5.3 servers in our environment, I need to transfer some files in Binary mode from one server to another and some files in ASCII mode from one server to another server. Could you please help me as to how I need to do that? Thanks, Rakesh (4 Replies)
Discussion started by: rakeshc.apps
4 Replies

4. Shell Programming and Scripting

Send email from sendmail on AIX using exchange server as SMTP server

i am new in AIX i am trying to write a script to take a backup for specific files on server to and check error log if backup success send email to administrator , script done except for sending mail , i try to configure sendmail on aix to use our exchange server to send emails but still get error... (0 Replies)
Discussion started by: ahmed_salah
0 Replies

5. UNIX for Dummies Questions & Answers

Error: "logger: illegal option -- p"

Hi All, I am working on a Solaris 10 server. From this month start, it gives the error "logger: illegal option -- p" with each command. If I execute a script whose output shown on terminal, it comes many times.. Could you please help? It comes only for my login. And I dont remember any changes... (4 Replies)
Discussion started by: jaiseaugustine
4 Replies

6. UNIX for Dummies Questions & Answers

AIX and Linux difference (character set)

I'm having a problem regarding the encoding of my files in Linux and AIX. I have a file which can be viewed both in Linux and AIX (via NetApp mount). When I checked the encoding, they have difference. In Linux, the file is encoded as ISO-8859 text. (checked by using "file" command).... (1 Reply)
Discussion started by: Jin_
1 Replies

7. AIX

Will it affect my AIX LPAR security, when i set up email alerts on AIX server.

Hello, I've set up email alerts on AIX Servers. so that i can get email notifications (via mail relay server) when ever there is abnormal behavior. for example 1) my script monitors CPU/disk/memory etc... when it reaches high water ark, it will send an email alert. 2) disk usage alerts 3)... (5 Replies)
Discussion started by: System Admin 77
5 Replies

8. Solaris

Illegal Instruction error

I keep getting a Illegal instruction error when running my MCP file below is the dump error message followed by truss log, dose anyone have any ideas? /opt/builds/bin/core: ELF 32-bit MSB core file SPARC Version 1, from 'mcp' *** Select Close or Exit from the window menu to close this window... (12 Replies)
Discussion started by: Wpgn
12 Replies

9. AIX

How to ssh from an AIX OS server to a Fabric OS server without password?

Hi I'd like to ssh from an AIX OS server ( v5.3) to a Fabric OS server ( v6.1.2 ) without password. I tried using dsa or rsa keys but it didn't work, the aix server still asked for the password. Somebody help, please :(:(:( (8 Replies)
Discussion started by: bobochacha29
8 Replies

10. Shell Programming and Scripting

Use decimal value of array in bc ends with illegal character

hi all I have to read a long cvs file every 4 columns with decimal "3,45" numbers. The 9th row in this cvs is the first line I need, so it I tail -n+9. I use sed -e 's/,/./g' to get decimal values with . delimiter. So far no problem. Goal is to get two maximum negative forces in ranges... (5 Replies)
Discussion started by: Grille
5 Replies
UNIHEX2BMP(1)						      General Commands Manual						     UNIHEX2BMP(1)

NAME
unihex2bmp - GNU Unifont .hex file to bitmap graphics file converter SYNOPSIS
unihex2bmp [-phexpage] [-iinput_file] [-ooutput_file] [-f] [-w] DESCRIPTION
unihex2bmp reads a GNU Unifont .hex file Unicode page of 256 code points and converts the page into a Microsoft Windows Bitmap (.bmp) or Wireless Bitmap (.wbmp) file. The bitmap file displays the glyphs of a Unicode block of 256 code points in a 32 by 32 pixel grid. The glyphs themselves must be 16 rows, and either 8 columns or 16 columns wide. The default page is 0; that is, the range U+0000 throught U+00FF. The bitmap can be printed. It can also be edited with a bitmap editor. An edited bitmap can then be re-converted into a GNU Unifont .hex file with the unibmp2hex command. OPTIONS
-ppagenum Extract page pagenum from the .hex file. The default is Page 0 (Unicode range U+0000 through U+00FF). Note that "page" is not a standard Unicode term. It refers to an output bitmap graphics page of 16 by 16 code points. -i Specify the input file. The default is stdin. -o Specify the output file. The default is stdout. -f "Flip" (transpose) the grid so it matches the Unicode standard order. -w Produce a Wireless Bitmap format file instead of a Microsoft Windows Bitmap file. FILES
*.hex GNU Unifont font files SEE ALSO
bdfimplode(1), hex2bdf(1), hex2bdf-split(1), hex2sfd(1), hexbraille(1), hexdraw(1), hexmerge(1), johab2ucs2(1), unibmp2hex(1), unicover- age(1), unidup(1), unipagecount(1), uniunmask(1) AUTHOR
unihex2bmp was written by Paul Hardy. LICENSE
unihex2bmp is Copyright (C) 2007 Paul Hardy, and is released under version 2 of the GNU General Public License, or (at your option) a later version. BUGS
No known real bugs exist, except that this software does not perform extensive error checking on its input files. If they're not in the format of the original GNU Unifont hex file, all bets are off. Lines can be terminated either with carriage return, or carriage return plus line feed. 2007 Dec 31 UNIHEX2BMP(1)
All times are GMT -4. The time now is 11:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy