Examveda
Examveda

Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?

A. cat emp[!0-9]

B. more [emp][!0-9]

C. cat emp[x-z]

D. cat emp[a-z]

E. None of the above

Answer: Option A

Solution(By Examveda Team)

In Unix, the command cat emp[!0-9] is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric character. Here, the square brackets denote character classes, and the exclamation mark (!) negates the character class. So, [!0-9] matches any character that is not a numeric character.
Therefore, Option A: cat emp[!0-9] is the correct command to concatenate all files beginning with the string 'emp' and followed by a non-numeric character.

This Question Belongs to Computer Science >> Unix

Join The Discussion

Related Questions on Unix