grep or awk on an ascii file

From: Lindes Michael (michael.lindes@siemens.com)
Date: Thu Sep 08 2005 - 12:54:10 EDT


This is probably too simple, but I guess I just haven't run across this one
before.
I have some long ASCII string files where I'm trying to extract a substring
from. My script not doing extracting anything.
I tried a simple grep & awk on the file & nothing returns.
 
So if the file contains:
     aaaaaaaaaaaaaaaaxxxxxxxxxxxxxxxxxxxxxxxxxxaaaaaaaaaaaaaaaaa
I try:
    grep xx myAsciiFile.x
nothing returns.
I check:
    file myAsciiFile.x
    myAsciiFile.a ascii text
 
If I vi the file, insert a carriage-return anywhere in the file, I no longer
have a problem.
File type changes from ascii text to data.
Works, but that's not a viable solution.
 
Anyone able to help with this?
Thanks in advance

-------------------------------------------------------------------------------
This message and any included attachments are from Siemens Medical Solutions
USA, Inc. and are intended only for the addressee(s).
The information contained herein may include trade secrets or privileged or
otherwise confidential information. Unauthorized review, forwarding, printing,
copying, distributing, or using such information is strictly prohibited and may
be unlawful. If you received this message in error, or have reason to believe
you are not authorized to receive it, please promptly delete this message and
notify the sender by e-mail with a copy to Central.SecurityOffice@shs.siemens.com

Thank you
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:31:36 EDT