I appreciate your help, but I can’t get a solution to work. Japhy, thanks for the insight into the tr command, but I think the problem is more fundamental than a simple text file. When I run the following script:

 

#/usr/bin/perl -w

# tbb | 26 Sept 2002

# removes non alphanumeric characters from file

 

open(OUT, ">" . $ARGV[0] . "tmp");

 

while(<>)

{

      print $_;

      tr/a-zA-Z0-9//cd;

      print OUT "$_\n";

}

 

close OUT;

 

c:>rem_junk.pl test.txt

╨╧◄αí

 

I have included my text file if that helps . . ..

 

Thanks for helping me crack this nut . . ..

 

Tim

��ࡱ�                >  ��                                 ����        
����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
   ����                      
         
                                                         
��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������R
 o o t   E n t r y                                               ��������   
     
�      F            ��¢Xe�   �      O l k 1 0 S i d e P r o p s _ 0 0 0 1          
                 ( ������������                                        �       _ _ n 
a m e i d _ v e r s i o n 1 . 0                           (                       
       �M��Xe��M��Xe�            _ _ s u b s t g 1 . 0 _ 0 0 0 2 0 1 0 2             
            * ������������                                       0             
��������������������������������������������������������������������������������������������������������������������
    !   "   #   $   %   &   '   (   )   *   
��������������������������������������������������������9   :   ;   <   =   
������������������������������������G   ��������J   K   L   M   N   O   P   Q   R   S  
 T   U   V   W   ��������Z   ��������������������`   a   
����������������������������������������������������������������������������������������������������������������������������
       :�(
'�C��y�wp�u$ M       8����� +*V�  mspst.dll     NITA��� � 7�n   
I:\Tim\Misc\TimsPst.pst @ 0��>�We�@ 0P��Xe�>y�����H�OH�sVc                       
                          �      F�     �      F      �      F                �� 
    ��                     �  
  �  
                     X - U I D L    X - R C P T - T O                           
����                                                           �  
                                                          _ _ s u b s t g 1 . 0 _ 0 0 
0 3 0 1 0 2                         *       ����                                   
    0       _ _ s u b s t g 1 . 0 _ 0 0 0 4 0 1 0 2                         * 
������������                                       &       _ _ s u b s t g 1 . 0 _ 
1 0 0 4 0 1 0 2                         *       ����                               
               _ _ s u b s t g 1 . 0 _ 1 0 0 8 0 1 0 2                         * 
������������                                              _ _ s u b s t g 1 . 0 _ 
1 0 0 9 0 1 0 2                         *    
   ����                                              _ _ s u b s t g 1 . 0 _ 1 0 1 4 
0 1 0 2                         *  ������������                                       
            _ _ s u b s t g 1 . 0 _ 1 0 1 5 0 1 0 2                         *      
  ����                                    
          _ _ s u b s t g 1 . 0 _ 1 0 1 A 0 1 0 2                         *  
������������                                              �  
                                                          ��                        
                                    ��                                                
             �wV�                                                           IPM.Note  
                                                      Please try again                 
                               SMTP:[EMAIL PROTECTED]                                      
                                                                        _ _ s u b s t 
g 1 . 0 _ 0 0 1 A 0 0 1 E                         * ������������                     
                              _ _ s u b s t g 1 . 0 _ 0 0 3 7 0 0 1 E                 
        *       ����                                    
          _ _ s u b s t 
g 1 . 0 _ 0 0 3 B 0 1 0 2                         * ������������                     
                         _ _ s u b s t g 1 . 0 _ 0 0 3 D 0 0 1 E                     
    *       ����                                              _ _ s u b s t g 1 
. 0 _ 0 0 3 F 0 1 0 2                         * ������������                         
              ;       _ _ s u b s t g 1 . 0 _ 0 0 4 0 0 0 1 E                         
* 
      ����                                              _ _ s u b s t g 1 . 0 
_ 0 0 4 1 0 1 0 2                         * ������������                             
          1       _ _ s u b s t g 1 . 0 _ 0 0 4 2 0 0 1 E                         * 
      ����                                                  �+����n �T    
Tim Booher SMTP [EMAIL PROTECTED]      Tim Booher                                     
                     �+����n �T   pgmim SMTP [EMAIL PROTECTED]                pgmim 
                                                              �+����n �T    Tim 
Booher SMTP [EMAIL PROTECTED]      Tim Booher                                         
             SMTP:[EMAIL PROTECTED]                                         
SMTP:[EMAIL PROTECTED]                                         _ _ s u b s t g 1 . 0 
_ 0 0 4 3 0 1 0 2                         * ������������                             
          ;       _ _ s u b s t g 1 . 0 _ 0 0 4 4 0 0 1 E                         * 
      ����                                              _ _ s u b s t g 1 . 0 _ 
0 0 5 1 0 1 0 2                         * ������������                               
               _ _ s u b s t g 1 . 0 _ 0 0 5 2 0 1 0 2                         *  
     ����                                              _ _ s u b s t g 1 . 0 _ 0 0 
6 4 0 0 1 E                         * ������������                                   
           _ _ s u b s t g 1 . 0 _ 0 0 6 5 0 0 1 E                         *    ! 
  ����                                              _ _ s u b s t g 1 . 0 _ 0 0 7 0 
0 0 1 E                         * ������������                                      
        _ _ s u b s t g 1 . 0 _ 0 0 7 5 0 0 1 E                         *       
����                                              SMTP                               
                             [EMAIL PROTECTED]                                             
      Please try again                                                SMTP             
                                               [EMAIL PROTECTED]                      
                        SMTP                                                           
 [EMAIL PROTECTED]                                              Received: from 
out018.verizon.net [206.46.170.96] by mail010 wit_ _ s u b s t g 1 . 0 _ 0 0 7 6 0 0 1 
E                         * ������������                                           
   _ _ s u b s t g 1 . 0 _ 0 0 7 7 0 0 1 E                         *       ����    
                                          _ _ s u b s t g 1 . 0 _ 0 0 7 8 0 0 1 E    
                     * ������������                                              _ 
_ s u b s t g 1 . 0 _ 0 0 7 D 0 0 1 E                         *        ����         
                              �      h ESMTP
  (SMTPD32-7.05) id A32F87F010E; Wed, 25 Sep 2002 19:22:07 -0500
Received: from Gxqcct ([66.56.82.248]) by out018.verizon.net
          (InterMail vM.5.01.05.09 201-253-122-126-109-20020611) with SMTP
          id <20020926002520.VYRS16391.out018.verizon.net@Gxqcct>
          for <[EMAIL PROTECTED]>; Wed, 25 Sep 2002 19:25:20 -0500
From: pgmim <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Please try again
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary=FMRA15DjC747nU8UP4sB
Message-Id: <20020926002520.VYRS16391.out018.verizon.net@Gxqcct>
Date: Wed, 25 Sep 2002 19:25:23 -0500
X-RCPT-TO: <[EMAIL PROTECTED]>
Status: U
X-UIDL: 314187795

                    �+����n �T   pgmim SMTP [EMAIL PROTECTED]                pgmim  
                                                         SMTP:[EMAIL PROTECTED]            
                                  SMTP                                                 
           [EMAIL PROTECTED]                                                   _ _ s u b s 
t g 1 . 0 _ 0 C 1 9 0 1 0 2                         * ������������                   
                 +   1       _ _ s u b s t g 1 . 0 _ 0 C 1 A 0 0 1 E                   
      *    )   ����                                    ,          _ _ s u b s t g 
1 . 0 _ 0 C 1 D 0 1 0 2                         * ������������                       
             -          _ _ s u b s t g 1 . 0 _ 0 C 1 E 0 0 1 E                       
  * "   $   ����                                    .          _ _ s u b s t g 1 . 
0 _ 0 C 1 F 0 0 1 E                         * ������������                           
         /          _ _ s u b s t g 1 . 0 _ 0 E 0 2 0 0 1 E                         * 
#   '   ����                                    0          _ _ s u b s t g 1 . 0 _ 
0 E 0 3 0 0 1 E                         * ������������                               
     1          _ _ s u b s t g 1 . 0 _ 0 E 0 4 0 0 1 E                         * & 
  (   ����                                    2                                       
                                                                                       
            [EMAIL PROTECTED]                                              Please try 
again                                                
00000002[EMAIL PROTECTED]mail.theboohers.org                 
00000002[EMAIL PROTECTED]mail.theboohers.org                                        
                                                                                       
                  _ _ s u b s t g 1 . 0 _ 0 E 1 D 0 0 1 E                         * 
������������                                    3          _ _ s u b s t g 1 . 0 _ 
0 E 2 8 0 0 1 E                         *  %   -   ����                               
     4   0       _ _ s u b s t g 1 . 0 _ 0 E 2 9 0 0 1 E                         * 
������������                                    5   0       _ _ s u b s t g 1 . 0 _ 
1 0 0 0 0 0 1 E                         * *   ,   ����                               
     6          _ _ s u b s t g 1 . 0 _ 1 0 0 8 0 0 1 E                         * 
������������                                    7          _ _ s u b s t g 1 . 0 _ 
1 0 0 9 0 1 0 2                         * +   1   ����                               
     8   X      _ _ s u b s t g 1 . 0 _ 1 0 3 5 0 0 1 E                         * 
������������                                    >   5       _ _ s u b s t g 1 . 0 _ 
3 0 0 B 0 1 0 2                         * .   0   ����                               
     ?          T  �  LZFu��[ 
 rcpg125�2Chtml10��
����� PVU�5Q �ch
�set2 ��53F�0<C��       �;/052`�c P        d36`��4 *\�� 9 
<HTML>CG3� EADe]4�</��5�`<BODY]Q�
�l�"A�ra�  src=cid :S73Y42K xfT35v8V Z5eM heig�=`�dth�'�"�#�$�8 
�%D(c)�)64}S !   -�`*�FON�TP-�.�56 �0-�0w`)�0w3�
�!l�*�"$�7 �/0)u};                                        
<20020926002520.VYRS16391.out018.verizon.net@Gxqcct>            ��/��pJ�=��W<�       
                                         _ _ s u b s t g 1 . 0 _ 3 4 1 4 0 1 0 2       
                  * ������������                                    @          _ _ 
s u b s t g 1 . 0 _ 6 5 A 0 0 0 1 E                         *  /   5   ����           
                         A          _ _ s u b s t g 1 . 0 _ 8 0 0 0 0 0 1 E           
              * ������������                                    B          _ _ s u 
b s t g 1 . 0 _ 8 0 0 1 0 0 1 E                         *  2   4   ����               
                     C          NITA��� � 7�n                                        
          &b20020926122458314187795                                       
00000002[EMAIL PROTECTED]                                     mail.theboohers.org    
                                         314187795                                     
                  <[EMAIL PROTECTED]>                                            P O 
P : / / m a i l . t h e b o o h e r s . o r g / 3 1 4 1 8 7 7 9 5                      
                                     _ _ s u b s t g 1 . 0 _ 8 0 0 2 0 0 1 E           
              * ������������                                    D   
       _ _ s u b s t g 1 . 0 _ 8 0 0 3 0 0 1 E                         * 3   7   
����                                    E          _ _ s u b s t g 1 . 0 _ 8 0 0 4 0 
1 0 2                         * ������������                                    F   
H       _ _ s u b s t g 1 . 0 _ 8 0 0 5 0 1 0 2                         *  6   8   
����                                    H          3 1 4 1 8 7 7 9 5                  
                                                           @ 0   P��Xe�@ 0   P
��Xe� �       Z 7 �       E                               
             7          @ 9    ���3�d�;        � ?    ;    � @   
       A    1    � B          C    ;    � D          Q        
�R        �  d           e           p           u           v 
          w           x          _ _ p r o p e r t i e s _ v e r s i o n 1 
. 0                   0 ����9   ����                                    I   �      
_ _ r e c i p _ v e r s i o n 1 . 0 _ # 0 0 0 0 0 0 0 0         :  ��������;          
             ��¢Xe���¢Xe�            _ _ s u b s t g 1 . 0 _ 0 F F 6 0 1 0 2       
                  * ������������                                    X          _ _ 
s u b s t g 1 . 0 _ 0 F F F 0 1 0 2                         * :   =   ����           
                         Y   C        }    �        1    �           
       �                     @    ��
��d�              
         (   0       )   0                                       
                      X   �                          5   5     
 0       �  �?   �o       �e           �          �          � 
  
       �         �   H    � �       �  =          4       � 
                                                                                
             �+����n �T   [EMAIL PROTECTED] SMTP [EMAIL PROTECTED]            
                                                  [EMAIL PROTECTED]                   
                           SMTP                                                        
    [EMAIL PROTECTED]                                              
SMTP:[EMAIL PROTECTED]                                                           
 �   C    �  0          0   _ _ s u b s t g 1 . 0 _ 3 0 0 1 0 0 1 E       
                  * ������������                                    [          _ _ 
s u b s t g 1 . 0 _ 3 0 0 2 0 0 1 E                         *  <   ?   ����           
                         \          _ _ s u b s t g 1 . 0 _ 3 0 0 3 0 0 1 E           
              *  ������������                                    ]          _ _ s u 
b s t g 1 . 0 _ 3 0 0 B 0 1 0 2                         * >   @   ����               
                     ^          _ _ p r o p e r t i e s _ v e r s i o n 1 . 0         
          0  ������������                                    _   �                    
                                                       ������������                    
                                                                                       
         ������������                                                                  
                                                  ������������                         
                              0         0       � �       �   0   
    a s                                                                                
                                                                                       
                                                                                       
                                                                                       
                                                                                       
             

Attachment: smime.p7s
Description: application/pkcs7-signature

Reply via email to