Question: Using UNIX commands (or the terminal application on Mac) Write the command to retrieve the accessions number from the files called accessions.txt with the following

Using UNIX commands (or the terminal application on Mac)

Write the command to retrieve the accessions number from the files called accessions.txt with the following criterion:

  1. contain the number 5
  2. contain the letter d or e
  3. contain the letters d and e in that order
  4. contain the letters d and e in that order with a single letter between them
  5. contain both the letters d and e in any order
  6. start with x or y
  7. start with x or y and end with e
  8. contain three or more digits in a row
  9. end with d followed by either a, r or p

using this file:

accessions.txt

xkn59438 yhdck2 eihd39d9 chdsye847 hedle3455 xjhd53e 45da de37dp

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!