ftp.nice.ch/pub/next/unix/text/nextflip.README

This is the README for nextflip.N.bs.tar.gz [Download] [Browse] [Up]

This is Rahul Dhesi's flip program compiled for the NeXT.  It's a simple
little program that makes it easier to exchange DOS and Un*x text
files.  The flip program should be put in your local binaries
directory (/usr/local/bin or something).  The tar file includes the
NeXT binary, the source, the man page in nroff & plain ASCII as well
as instructions for how to compile it under different platforms (such
as DOS).  I don't have Turbo C, or I would have compiled it.

I made a simple modification to it so that it runs as a filter when no
file names are given.

If you have to exchange DOS and NeXT text files frequently, it's handy
to set up Terminal services to do the CLI legwork for you.  The nice
thing about terminal services is that they can be run from any 
application that supports services (such as Edit and Workspace).

To set up a service which allows you to select text within the
application and convert it from DOS (strip the carriage returns
and the control-z), do the following:

  o Start Terminal, and select "Terminal Services" under the "Info" menu.  
  o Press the "New" button, and enter something along the lines of
    "DOS text to NeXT" for the name.
  o In the "Command" field, enter "/usr/local/bin/flip -u"  (your path
    may differ, of course)
  o In the "Accept" panel, check "Plain text" only.
  o In the "Use Selection" panel, push "As Input."
  o In the "Execution" panel, select "Run service in background",
    "Return Output", and "Fast C-shell."
  o Press "OK"

To set up a service to convert NeXT text to DOS, just use a different
name (like "NeXT text to DOS") and use "/usr/local/bin/flip -m" for
the command.

This program also runs nicely from the Workspace since it can take
multiple files.  To set up a service which allows you to select 
text files and convert them from DOS to NeXT format, do the following:

  o Start Terminal, and select "Terminal Services" under the "Info" menu.  
  o Press the "New" button, and enter something along the lines of
    "DOS files to NeXT" for the name.
  o In the "Command" field, enter "/usr/local/bin/flip -u"  (your path
    may differ, of course)
  o In the "Accept" panel, check "Files" only.
  o In the "Use Selection" panel, push "On Cmd Line."
  o In the "Execution" panel, select "Run service in background",
    "Discard Output", and "Fast C-shell."
  o Press "OK"

To set up a service to convert NeXT text files to DOS files, just use 
a different name for the service (like "NeXT files to DOS") and use
"/usr/local/bin/flip -m" for the command.

I take *no* responsibility for the above.  Flip seems to be pretty
good about detecting binary files and refusing to brainwash them, 
but I wouldn't count on it.  Make sure selected files are text files
before converting them.

Read the man page for more details.

Craig Pratt
pcnot4me@cs.montana.edu

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.