(c) $ ls intro?(d)4.a. With both input and output redirected.$ grep \$Id < *.c > id_listb. With only input redirected.$ grep -i suzi < addressesc. With only output redirected.$ grep -il memo *.txt > memoranda_filesd. Within a pipe.$ file /usr/bin/* | grep "Again shell script" | sort -rIn which of the preceding is grep used as a filter?Example d uses grep as a filter.Chapter 9Chapter 9, pp. 356, Exercises 1,3,4,5,6,81.Explain the following unexpected result:
2.You can give the name of the file containing the script as an argument tothe shell (for example, sh scriptfile, where scriptfile is the name of the filecontaining the script).