Guru Nanak University Bash Worksheet
Description
Solutions must be submitted as a PDF file.
- Show the screen grabs (e.g., copied and pasted from a text window) showing command(s) that determine how many words in the words1.txt file that start with a vowel (ignoring case), have at least 5 letters, and end with a ‘g’.
- Show the screen grabs showing command(s) that determine how many words in the words1.txt file that have at least 5 consonants in a row (ignoring case).
- Show the screen grabs showing command(s) that determine how many words are in the words1.txt file that have a single letter ‘a’ as their only vowel (ignoring case) and are at least 5 letters long.
- Show the screen grabs showing command(s) that determine how many words are in the words1.txt file that are not in the words2.txt file (ignoring case).
- Some of the files in the dir1 directory have the same content as the dir2 directory but may have different names. Show the screen grabs showing command(s) that determine the names of the files that are in the dir1 directory that have different content than any file in the dir2 directory. Also give the number of such files as well.
- Define a legal password to be one that has a minimum of 8 characters, contains at least one lower-case letter, at least one uppercase letter, at least one digit, and at least one character from the group [!@#$%^&]. Show the screen grabs showing command(s) that determine how many passwords in the passwords.txt file are legal.
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."