Shell Interview Questions and Answers

 

Given a file , write a command sequence to find the count of each word.

tr -s "(backslash)040" where "(backslash)040" is octal equivalent of "space"
"(backslash)011" is octal equivalent of "tab character" and
"(backslash)012" is octal equivalent of newline character.

Posted by:Richards