Dealing with Text in Unix!

This site is still under development ...

Overview

Text files, like the rest of the files in the digital world of computing,
are transported in either ascii or binary format. When treating problems
that arise out of text transportation it is essential to make  the
distinction between these file types
 
  • Encoded and compressed binary files
  • Text files from Mac and Windows Platforms
  • Viewing text files in unix
  • Printing out text files
  • Images (Extra)
  • Encoded and Compressed binary files
    Other interesting conversions with hex and binary files:
    unhex file.hqx         : decodes a hexed file
    binhex file.bin         : hexes a macbinary file
    unbin file.bin          : decodes a macbinary file
    hqx2bin file.hqx      : changes hex file to macbinary format


    Text files from Mac or Dos Platforms:
     

    Key:  Different platforms use different characters to mark end of line.
    Viewing text in Unix:

    Postscript files : file.ps

    To view text with its format (ie. as it will appear when printed out).
    USE: 'gs' or 'gv' (ghost viewer) as follows -
     gs file.ps
     gv file.ps
    OR convert the text file into ascii format which could be viewed with
    any of the editing utilities like pico, emacs, vi.
    ps2ascii file.ps > file
    emacs file


    pdf files : file.pdf

    Can change to postscriopt file and  use the above procedure to view the file:
    acroread  -toPostScript file.pdf
    OR
    View with adobe acrobat viewer or ghostviewer (gv):
    acroread file.pdf
    gv file.pdf


    Printing out text files in Unix

    postcript files :


    pdf files :

    Viewing image files


    (For comments or contributions, CONTACT vusi@cs.stanford.edu
    Remember, our site can only get better with your  positive input.)