Write a C program called cutchar.c that prints
only certain characters in the lines of the files provided as its arguments.
Compile: gcc –o cutchar cutchar.c
Test Run:
cutchar
-3-8 < file
prints each line without printing from the 3rd to the 8th characters.
Output
cutchar
-5,15,20 < file
prints each line without printing its characters 5, 15 and 20.
cutchar
-1 < file
prints each line without printing its 1st character.
The command
cutchar
-1-10 -50,52 < file
prints each line without printing its first 10 characters and without characters
50 and 52.