edited by
490 views
0 votes
0 votes

Unix command to change the case of first three lines of file “shortlist” from lower to upper

  1.  $ tr  '[a-z]' '[A-Z]' shortlist  ¦ head  – 3
    
  2. $ head – 3 shortlist ¦ tr ‘[a-z]’ ‘[A-Z]’
    
  3. $ tr head – 3 shortlist  ‘[A-Z]’ ‘[a-z]’
    
  4. $tr shortlist head  – 3 ‘[a-z]’ ‘[A-Z]’

     

edited by

2 Answers

Answer:

Related questions

0 votes
0 votes
2 answers
2
0 votes
0 votes
3 answers
3
go_editor asked Mar 24, 2020
626 views
Match the following :$\begin{array}{clcl} & \textbf{List-I} & {} & \textbf{List-II} \\\text{a.} & \text{Glass } & \text{i.} & \text{Contains liquid crystal and serves a...
0 votes
0 votes
2 answers
4
go_editor asked Mar 24, 2020
1,147 views
In Artificial Intelligence(AI), what is present in the planning graph?Sequence of levels LiteralsVariablesHeuristic estimates