Solved

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

Posted on 2014-07-24
7
346 Views
Last Modified: 2014-07-25
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
Comment
Question by:noirfan
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 77

Expert Comment

by:arnold
ID: 40217320
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
 

Author Comment

by:noirfan
ID: 40217570
@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
 
LVL 28

Expert Comment

by:serialband
ID: 40217627
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 40218176
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
 
LVL 28

Accepted Solution

by:
serialband earned 500 total points
ID: 40218238
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
 
LVL 77

Expert Comment

by:arnold
ID: 40218469
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
 

Author Closing Comment

by:noirfan
ID: 40219555
@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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now