Hdi2u S22

From wiki
Revision as of 23:37, 19 April 2017 by Rf (talk | contribs) (Created page with "* Try the command: grep "^DE" hsy14768.embl and grep -x "DE.*" hsy14768.embl * What are the <code>^</code> symbol and the <code>-x</code> parameter in these commands doing? *...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • Try the command:
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".