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/

ls -r | wc -l

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

2. Find string 2

Path: UNIX/Filters/Find string 2/

grep -v lin teknoscript.txt

3. Find string 3

Path: UNIX/Filters/Find string 3/

grep -n lin teknoscript.txt

4. Find string 5

Path: UNIX/Filters/Find string 5/

grep  h$ teknoscript.txt

5. Find string 7

Path: UNIX/Filters/Find string 7/

grep ^echo teknoscript.txt

6. Find string 8

Path: UNIX/Filters/Find string 8/

grep -v ^# teknoscript.txt

7. Grep Command - 2

Path: UNIX/Filters/Grep Command - 2/

grep -v ';$' employee.txt

8. Grep Command - 3

Path: UNIX/Filters/Grep Command - 3/

grep ':$' employee.txt

9. List Files

Path: UNIX/Filters/List Files/

ls | grep '^s'

10. Move File 4

Path: UNIX/Filters/Move File 4/Move File 4/

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

11. Pattern Search

Path: UNIX/Filters/Pattern Search/

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

12. Redirect Command - 2

Path: UNIX/Filters/Redirect Command - 2/

echo '4'

13. Tail Command - 2

Path: UNIX/Filters/Tail Command - 2/

tail -3 sample.txt

14. Word Search

Path: UNIX/Filters/Word Search/

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!

Post a Comment

* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !