What files are returned by the command if a directory contains the - ProProfs Discuss
Advertisement

What files are returned by the command if a directory contains the following files:#lsratas saran jacaw cabal cabin and you issue the command ls | grep .a[^a.,?

Asked by Easton, Last updated: Aug 26, 2021

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

John Smith

John Smith

John Smith
John Smith

Answered Sep 08, 2016

Ratas-2. jacaw-3. saran-remember the wildcard character in string processing * : zero or more character . : any single character [a-z] : any single character from the range [^a-z] : any single character except from the range ls | grep .a[^b]a. means that word having five characters, starting with any character but a should be in second position, third position shouldnt be b and fourth character should be a and any single character in fifth position. grep command is use to process the string with different pattern.
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.