PDA

View Full Version : Tivo Script Help


fi3ndlich
06-14-2006, 04:47 PM
I need to know if it is possible to write a script that can read though a txt file and get occurrences of a specified parameter and echo the number back to the prompt.

This is jsut the first part of a script I am wanting to write but I am not very good at unix programming.

Could someone point me in the correct direction.

Thanks

fantmn
06-14-2006, 05:19 PM
Try this link (http://www.linux.com/guides/abs-guide/textproc.shtml)about text processing in Linux. There is a sample using grep and wc to produce count of a word. There are lots of other examples there as well doing all kinds of text processing.