issue with grep command

J

Jul

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
 
A

Albert Hopkins

On Thu, 2009-09-03 at 11:51 -0700, Jul wrote:

[Stuff about tcsh and grep deleted]

What on earth does this have to do with Python?

-a
 
R

Rhodri James

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top