how to search for vowels a,e,i,o,u appearing in the same sequence in a file

Answers were Sorted based on User's Feedback



how to search for vowels a,e,i,o,u appearing in the same sequence in a file..

Answer / karthik.g.r

grep -w "a[^aiou]*e[^aeou]*i[^aeiu]*o[^aeio]*u" filename

Is This Answer Correct ?    19 Yes 0 No

how to search for vowels a,e,i,o,u appearing in the same sequence in a file..

Answer / venkita krishnan

grep -i *[a,e,i,o,u]*

Is This Answer Correct ?    4 Yes 3 No

how to search for vowels a,e,i,o,u appearing in the same sequence in a file..

Answer / narasimha

grep 'a+e+i+o+u+' file name

Is This Answer Correct ?    1 Yes 1 No

how to search for vowels a,e,i,o,u appearing in the same sequence in a file..

Answer / michalis

grep 'c[aeiou]*t' somewords.txt

Is This Answer Correct ?    4 Yes 7 No

Post New Answer

More Shell Script Interview Questions

What is "test"? How it is used in shell scripting?

2 Answers  


What does debug script mean?

0 Answers  


How do you schedule a command to run at 4:00 every morning?

5 Answers   Wipro,


How to initialize a directory size to a variable??

2 Answers  


How will you pass and access arguments to a script in linux?

0 Answers  






how to read systems current date and time

4 Answers  


whta is the use of "exec" command?

1 Answers  


I have 2 files and I want to print the records which are common to both.

0 Answers  


How to get the 3rd element/column from each line from a file?

0 Answers  


How do I debug a shell script?

0 Answers  


What is the first line in every perl script called?

0 Answers  


Write a shell program to test whether a given number is even or odd?

8 Answers  


Categories