The tee command reads its standard input until end-of-file


The tee command reads its standard input until end-of-file, writing a copy of the input to standard output and to the file named in its command-line argument. (We show an example of the use of this command when we discuss FIFOs in Section 44.7.) Implement tee using I/O system calls. By default, tee overwrites any existing file with the given name. Implement the -a command-line option (tee -a file), which causes tee to append text to the end of a file if it already exists. (Refer to Appendix B for a description of the getopt() function, which can be used to parse command-line options.)

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: The tee command reads its standard input until end-of-file
Reference No:- TGS01402296

Expected delivery within 24 Hours