56.8k views
3 votes
In this assignment, you will demonstrate your ability to write simple shell scripts. This is a cumulative assignment that will challenge you to pull together a variety of lessons from throughout the course. Earlier in the semester, when looking at the problems of file transfer, we discussed the difference beteween binary and ASCII files and the two styles of ASCII text files. In this assignment, you will write a script to diagnose whether a group of files are Windows-style ASCII text and, if so, will convert them to Unix-style ASCII text.

User Dan Hogan
by
4.6k points

1 Answer

0 votes

Answer:

Step-by-step explanation:

Usage: flip [-t|-u|-d|-m] filename[s]

Converts ASCII files between Unix, MS-DOS/Windows, or Macintosh newline formats

Options:

-u = convert file(s) to Unix newline format (newline)

-d = convert file(s) to MS-DOS/Windows newline format (linefeed + newline)

-m = convert file(s) to Macintosh newline format (linefeed)

-t = display current file type, no file modifications

User Janderson Silva
by
4.0k points