• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 380
  • Last Modified:

Trying to determine what the codes in a text file mean on UNIX

Hi all-

I'm looking at a series of UNIX files that contain sequences such as:

\\12PI
\MRLo\
.1532.LEC.

They're flat text and appear to be some kind of report.  I'm trying to determine what source type (i.e. LaTeX, groff, etc.) they might be?

Thanks in advance for any input.
0
noirfan
Asked:
noirfan
  • 2
  • 2
  • 2
  • +1
1 Solution
 
arnoldCommented:
Is this an old file, or does it get updated regularly.

Try cat -v filename
To see whether there are any control..

It is difficult based on very small data set to determine.
0
 
noirfanAuthor Commented:
@arnold: These are old files - dates around 2001/2000.  cat -v produces the same output as I'm seeing in vi.  Here's the full string from the top of the file (before the text body begins):

\TM00\\12PI\\DRAo\\BM09\
\MRLo\
0
 
serialbandCommented:
You can try the file command to see if it will give you the filetype.

file filename

You can also try to view the printable strings

strings filename
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Gerwin Jansen, EE MVETopic Advisor Commented:
Do these files have an extension? If so: what is it?

Can you find references on your system of something that actually uses these files? Like <program name> <one of your UNIX files>
0
 
serialbandCommented:
This might lead to a clue about what your documents are:

http://cphelp.cpsi.com/v19/clinical/ancilref/iPad/mrhead.htm


I just googled for the header string you provided and it looks like some sort of Medical Record Header
0
 
arnoldCommented:
As serialband suggests, it looks like these files are input to an ASCII/Terminal type medical application/interface.

You should archive/tar-gzip these files and any others onto a tape and store it with notation in a safe place.
Is your firm in pharmaceutical/research.
Presumably, you are tasked at either repurposing this system or it is a upgrade cycle.....
0
 
noirfanAuthor Commented:
@serialband: That looks exactly like what I was looking for.   Looks like I should've tried googling the entire string with a word in front of it, instead of pieces of the syntax.  Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now