(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
grep "^DE" hsy14768.embl and grep -x "DE.*" hsy14768.embl
- What are the
^
symbol and the -x
parameter in these commands doing?
- You will need to check the manpage for grep to be sure.
- Move to your home directory and type ls –lR
- Use the above command with a pipe and a grep command to search for files created or modified today.
- List the files in the hdi2u_files directory and use the grep command to look for those containing the
cat *seqs.fasta | grep "^>" | wc -l
- Each sequence in a fasta file starts with a header line that begins with a
>
.
- request for redirection of output to a file, rather than as a character to look for.
- As before, the
^
symbol means "match only at the beginning of the line".