Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NAME
- Asgmt1 ---- character replacement
- SYNOPSIS
- Asgmt1 replace_characters replacement_characters target_file[-g]
- DESCRIPTION
- 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.
- The following options are available:
- -g replaces all occurrences of the replace_characters, with the replacement_characters.
- 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.
- ERRORS
- EOPEN
- Cannot open due to it not existing or file corrupt.
- EWRITE
- Cannot write due to fail open, read only file or file corrupt.
- EREAD
- Cannot read due to fail open or file corrupt.
- ESEEK
- Cannot seek due fail open or incorrect arguments.
- EXIT STATUS
- The Asgmt1 utility returns 0 on success and >0 if an error occurs.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement