Which UNIX command correctly changes the case of only the first three lines of the file "shortlist" from lower case to upper case?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. (B) $ head -3 shortlist | tr '[a-z]' '[A-Z]'
More System Software and Operating System questions
- Match the following basic vi editor commands in UNIX with their functions. List I (Command): (a) dd (b) yy (c) p (d) u List II (Function):…
- Consider the following statements about linker software: (I) A linker combines multiple object (relocatable) modules into a single load mod…
- A distributed operating system typically consists of:
- Which of the following statements about UNIX signals is NOT correct?
- A null remote procedure call (RPC) (carrying 0 data bytes) takes 1.0 msec, with an additional 1.5 msec for every 1K of data carried. How lo…
- What is the function of the following UNIX command? wc -l a > b &