Get Some Free Products at your Door Step. Just feed ur Address in dis Link...!!

Friday, October 28, 2011

How to xtract words from file in linux for Dictionary maker

Example - ditto is a dictionary file name

1. grep ".*xxx" ditto
//here .*xxx is given for word ends with xxx
//it will list all words ends with xxx pattern

2. grep ".*xxx" > newditto
//it will save output of Ist command to newditto file

3. grep -v ".*xxx" > newditto
//it will save those word not ends with xxx pattern to ditto file

4. wc -l // wc -w // wc -c
use it for count line word and character in file

No comments:

Post a Comment