HELLO DORAEMONS ,
WELCOME TO MY BLOGPOST.IN THIS BLOG POST I HAVE SHARE THE PREVIOUS ASKED BASH\UNIX QUESTIONSASKED IN LAST IRA AND ALSO THE SOLUTION TO THOSE QUESTION IN MY VIDEO DOWN BELOW.
I HOPE THIS IS USEFUL AND HELPS YOU TO LEARN HOW TO SOLVE THOSE QUESTIONS.
THANK YOU FOR YOUR SUPPORT AND KUDOS TO NEW BEGINNINGS!!!!!!!!
IRA_7Feb2022 Unix
Write the Unix command to display the number of companies who are belonging to banking sector and who have published results in the 2nd Quarter. ALL The details of the companies are stored in a file(inputfile) in the following format:
Companyld&CompanyName&Company Sector&ResultsQuarter
where symbol '&' is used as the field delimiter for the file. If there is no record in input file or no records satisfying the above criteria, print "No records found".
The file name 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. For more clarity, please refer to the sample input and output below, Note: The string values for CompanySector and ResultsQuarter can be in any case, hence search should be case insensitive
. Sample Input 1:
Companyld&CompanyName&CompanySector&ResultsQuarter
01&SBI&BANKING&3rd
02&infosys&IT&2nd
03&ICICI&Banking&2nd
04&HDFC&Banking&2nd
05&TCS&IT&1st
Output:
2
Solution for this Question is explained in the video below :
TCS IRA UNIX solution video 7-feb
0 Comentarios