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?

1
cat *.ch | wc -l
2
cat *.[c-h] | wc -l
3
cat *.[ch] | ls -l
4
cat *.[ch] | wc -l`

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation