TCS IRA/PRA/CPA UNIX 21 FEB QUESTION AND SOLUTION

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. 

 IRA SBQ 21st Feb UNIX

 emplD, empName,TSfilled?, Month

 1, Varsha,Yes,Jan 

2, Harish,No,Jan 

3, Nipun,Yes,Feb 

4, Kiran,No,Mar 

2, Harish,Yes,Mar 

6, Riddhi,Yes,Mar 


 Fields are separated by the field separator (".")


 Write a command to display the empID, empName, month for the employees who are Timesheet defaulters for any month(TSfilled= 'No'). Data should be displayed in increasing order of emplD. Display the output fields separated with a ".". 

For more clarity, please refer to the sample input and output below.

 Note: Ignore the case sensitivity for string values.

 The input file with the data(testcase input/ customized input) in the format mentioned, automatically supplied as command line argument when you run the script / command you have written. Hence you don't need to worry work on," How to bring the file to your script"?. 

 You just need to assume that a file is supplied to your script and read the file, which is supplied as command line argument and process the data in the file towards the given requirement. .....: 

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


 Sample Input 1:

 empID, empName,TSfilled?, Month 

1, Varsha,Yes,Jan

 2, Harish,NoJAN 

3, Nipun,Yes,Feb 

4,Kiran,No,Mar

 2, Harish,Yes,Mar

 6, Riddhi,Yes,Mar


 Output: 

2:Harish:Jan

4:kiran:Mar


IF YOUR CONFUSED AND DON'T KNOW HOW TO SOLVE THIS QUESTIONS. REFER TO THE BELOW VIDEO.I HAVE GIVEN DETAILED STRUCTURE TO FOLLOW AND EASIEST WAY TO SOLVE THIS QUESTION.







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