Explore BrainMass
Share

Bash script

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

I have many files in current directory. I want to determine which files contain the text "atg" on the second line, and then copy those files to the directory atg_start.fa .

Please guide me with a Bash script code fragment that will help me achieve the goal.

© BrainMass Inc. brainmass.com March 21, 2019, 11:27 pm ad1c9bdddf
https://brainmass.com/computer-science/files/bash-script-458382

Solution Preview

To check all the files in current directory for required property and then copy the appropriate files to the directory atg_start.fa; following is what you should ...

Solution Summary

Solution does not give a ready-to-use shell script, but it gives a code fragment to achieve the goal. Undertone of the solution is to guide the student.

$2.19