Solved

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

Posted on 2014-07-24
7
348 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 37

Expert Comment

by:Gerwin Jansen, EE MVE
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

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…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

778 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