I'd like to pref ice with the fact that I am pretty new to really working deeply with bash and Linux, so any help would be immense even just in starting tips that worked for you.
The problem I have is I am working with a bunch directories and sub directories. I am trying the grep out a line.
grep 'Relaxed' */*
It isn't elegant but it gives me a list of directories which contain a file that has the line Relaxed in it(in my case it is an output from an electronic structure prediction calculation). I have about 100+ of these directories so sorting through which ones are done and which aren't is tedious.
What I am hoping for help with is a method to search through each of these directories and when the string for example:
Relaxed atomic coordinates (fractional):
is found within a file(Relaxed is enough of a line to recognize) in that directory use a for loop or something to move that entire directory into done pile(another directory) and leave the incomplete ones in the directory as is. So I will then have a pile of directories that are "done" and untouched ones that I can re-run.
Again any help would be appreciated and I can clarify if anything seems confusing.