HELLO DORAEMONS,
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