TCS IRA UNIX 14TH FEB IRA 2022

 HELLO DORAEMONS,

IN THIS BLOGPOST ,I HAVE SHARED THE RECENTLY ASKED UNIX/BASH QUESTION AND SOLUTION WHICH IS CERTAINLY USEFUL WHEN YOU WANT TO PRACTICE.HOPE THIS BLOG IS USEFUL TO YOU.


Write the unix command to print the count of Mobiles in each brand along with the brand and Price.


In the output display the brand of the mobile and count in each brand in the ascending order of brand.


Refer the example below for more clarity on input and output format.

The file name input will be provided as command line argument when the script containing your command will run.

You can use shell variables (e.g. $0,$1,$2) whichever is applicable for your requirement to provide the command line argument.


Sample Test Case1:


ID:Brand:Model:YearofMfg:Price

M1:Samsung:Galaxy A15:2021:40000

M24:Sony: Xperia Pro:2021:42000 

M11:Sony:Xperia L1:2020:15000

M09:Apple:iPhone 13:2021:750000

M34:Samsung:A10:2020:25000

M06:Nokia:C2:2020:20000


Expected Output: 


Apple-1 

Nokia-1 

Samsung-2 

Sony-2


SOLUTION FOR THIS QUESTION VIDEO:

14TH FEB TCS IRA SOLUTION VIDEO


HOPE THIS IS HELPFUL TO YOU GUYS.IF YOU LIKE MY WORK ,CONSIDER SUBSCRIBING TO MY CHANNEL AND FOLLOW MY BLOGPOST FOR MORE UPDATES.



0 Comentarios

Follow Me On Instagram