1 votes 1 votes Which of the following UNIX/Linux pipes will count the number of lines in all the files having .c and .h as their extension in the current working directory? cat $* \cdot$ ch $ \: \mid$ wc $-1$ cat $* \cdot [$ c-h $] \: \mid$ wc $-1$ cat $* \cdot [$ ch $] \: \mid$ ls $-1$ cat $* \cdot [$ ch $] \: \mid$ wc $-1$ Operating System ugcnetcse-june2019-paper2 shell-script + – Arjun asked Jul 2, 2019 edited Jul 23, 2019 by Lakshman Bhaiya Arjun 1.3k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes cat *.[ch]|wc-1 UNIX/Linux pipes will count the number of lines in all the files having .c and .h as their extension in the current working directory. Option D is the correct Answer Gaurishankar Acharya answered Nov 8, 2020 Gaurishankar Acharya comment Share Follow See all 0 reply Please log in or register to add a comment.