issue with grep command

Rhodri James rhodri at
Fri Sep 4 00:25:52 CEST 2009

On Thu, 03 Sep 2009 19:51:20 +0100, Jul <sneakyelf at> wrote:

> in tcsh terminal i have the following line of code
> cat fileName.txt | grep "a"
> which extracts all the instances of "a" from the file in the
> terminal..
> however when i am trying to create a txt while, i am unable to do so
> for some reason..this is the syntaxt i am using --
> cat fileName.txt | frep "a" > a.txt
> file then appears in the folder, however, it can no be opened because
> "the file is not in the right format"..
> does anybody know how to correct this problem?
> thanks so much

This has sod all to do with Python, but I have to ask: *what* complains
that "the file is not in the right format"?  Also, I don't think you
meant "frep" that second time, but your typing is sufficiently awful
I can't be sure.

Rhodri James *-* Wildebeest Herder to the Masses

More information about the Python-list mailing list