Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. NAME
  2. Asgmt1 ---- character replacement
  3. SYNOPSIS
  4. Asgmt1 replace_characters replacement_characters target_file[-g]
  5.  DESCRIPTION
  6. The Asgmt1 utility replaces the characters in target_file. The replace_characters and the replacement_characters options are obtained from the user via the command line. The default behavior replaces the first occurrence, in the target_file, of the replace_characters with the replacement_characters.
  7. The following options are available:
  8. -g         replaces all occurrences of the replace_characters, with the replacement_characters.
  9. If Asgmt1 detects that replace_characters and  replacement_characters  are of different lengths, it will take the length of the smallest string(either replace_characters or  replacement_characters), replace characters within that length  and ignore the rest.
  10. ERRORS
  11. EOPEN
  12.     Cannot open due to it not existing or file corrupt.
  13. EWRITE
  14.     Cannot write due to fail open, read only file or file corrupt.
  15. EREAD
  16.               Cannot read due to fail open or file corrupt.
  17. ESEEK
  18.     Cannot seek due fail open or incorrect arguments.
  19. EXIT STATUS
  20. The Asgmt1 utility returns 0 on success and >0 if an error occurs.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement