Download our latest MNC Answers Application at Play Store. Download Now

Filters Hands-Ons [Unix > Filters] | Accenture TFA Training Pre-Learning Modules

Disclaimer: The primary purpose of providing this solution is to assist and support anyone who are unable to complete these courses due to a technical issue or a lack of expertise. This website's information or data are solely for the purpose of knowledge and education.

Make an effort to understand these solutions and apply them to your Hands-On difficulties. (It is not advisable that copy and paste these solutions).

All Question of the Hands-On Present Below for Ease Use Ctrl + F with the question name to find the Question. All the Best!


1. Count Files 

Path: UNIX/Filters/Count Files/cmd7.sh

ls -r | wc -l

#find ./ -type f -print | wc -l


2. Find string 2

Path: UNIX/Filters/Find string 2/findstring2.sh

grep -v lin teknoscript.txt


3. Find string 3

Path: UNIX/Filters/Find string 3/findstring3.sh

grep -n lin teknoscript.txt


4. Find string 5

Path: UNIX/Filters/Find string 5/findstring5.sh

grep  h$ teknoscript.txt


5. Find string 7

Path: UNIX/Filters/Find string 7/findstring7.sh

grep ^echo teknoscript.txt


6. Find string 8

Path: UNIX/Filters/Find string 8/findstring8.sh

grep -v ^# teknoscript.txt


7. Grep Command - 2

Path: UNIX/Filters/Grep Command - 2/cmd5.sh

grep -v ';$' employee.txt


8. Grep Command - 3

Path: UNIX/Filters/Grep Command - 3/cmd9.sh

grep ':$' employee.txt


9. List Files

Path: UNIX/Filters/List Files/cmd11.sh

ls | grep '^s'


10. Move File 4

Path: UNIX/Filters/Move File 4/Move File 4/movefile1.sh

mv livingthings/animals/reptiles/turtle livingthings/plants/


11. Pattern Search

Path: UNIX/Filters/Pattern Search/cmd12.sh

ls -1 | grep ^.[0-9].*$


12. Redirect Command - 2

Path: UNIX/Filters/Redirect Command - 2/cmd10.sh

echo '4'


13. Tail Command - 2

Path: UNIX/Filters/Tail Command - 2/cmd6.sh

tail -3 sample.txt


14. Word Search

Path: UNIX/Filters/Word Search/cmd8.sh

grep -i 'birbal' story.txt


If you have any queries, please feel free to ask on the comment section.

If you want MCQs and Hands-On solutions for any courses, Please feel free to ask on the comment section too.

Please share and support our page!