InterviewSolution
Saved Bookmarks
| 1. |
Which option is used with uniq command for selecting non-repeated lines?(a) -i(b) -c(c) -u(d) -aI have been asked this question in an interview for internship.My question comes from Unique and tr Command in chapter Simple Filters of Unix |
|
Answer» CORRECT ANSWER is (c) -u For explanation I would say: To select unique lines, we can use the sort -u command. But uniq also offers an option (-u)which is used for SELECTING non-repeating ENTRIES in a field. For example, |
|