04-22-2009
2,
0
Join Date: Apr 2009
Last Activity: 22 April 2009, 2:17 PM EDT
Posts: 2
Thanks Given: 0
Thanked 0 Times in 0 Posts
How do I test if a file contains particular characters
I am trying to write a bash script but do not know the unix commands I will have to use. I first have to test if an input file contains a number of characters.
For instance My input file's name is dunne.
cat dunne is bbcddceeceecbbacadce
So I want to test the out put of my file to see if it contains the characters abcde only.
if it does I will proceed with other commands,
if it does not, I will have to terminate.
I will appreciate any help on this.