Difference between revisions of "Hdi2u S22"

From wiki
Jump to: navigation, search
(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? *...")
 
(No difference)

Latest revision as of 22:37, 19 April 2017

  • 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".