1. Engineering
  2. Computer Science
  3. how do i write a bash script that uses the...

Question: how do i write a bash script that uses the...

Question details

How do I write a bash script that uses the 'egrep' command to list:

files beginning with M,

files ending with s,

files beginning with M and ending with s,

files containing 'er',

files containing 'ie' or 'al',

files containing two n's (possibly with characters in between),

files containing either 'a' followed by 'g' or 'g' followed by 'a' (possibly with characters in between),

files containing at least 3 spaces,

files containing either exclamation points or question marks,

files containing exactly one f,

files containing two f's,

files containing at least 4 occurrences of some character oter than space,

files whose length is a multiple of 8,

files beginning with T whose length is a multiple of 6,

files that do not contain either t, o, or e (upper and lower case).

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution