Hello,

I intend to convert some files to the space-separated format and thus input
the following command in the Terminal using Ubuntu,

Nico@frs3623:~/Documents/Control$ *grep -d ">" SRR21807.fasta | sort | uniq
-c > SRR21807.txt*

Unfortunately, the returning message is,

grep: invalid argument ‘>’ for ‘--directories’
valid arguments are:
  - ‘read’
  - ‘recurse’
  - ‘skip’
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
yangliu@frs3623:~/Documents/Control$  grep -d ">" SRR21807.fasta | sort |
uniq -c > SRR21807.txt
grep: invalid argument ‘>’ for ‘--directories’
Valid arguments are:
  - ‘read’
  - ‘recurse’
  - ‘skip’
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.

Could you figure out what incurred this error and how to fix it via
modifying my command? I appreciate your help.

Regards,
Nico

Reply via email to