I have this given directory structure.
/tmp/sub_1/sub_2/sub_3//data_1/data_2
where /tmp/sub_1 names will not change and sub_2 and sub_3 directories will be changing.
The has only three values (version_a, version_b, version_c).
So, what I would want is to check if is either version_a or version_c and remove that directory.
For example,
/tmp/sub_1/sub_2/sub_3/version_a/data_1/data_2
this directory from sub_3/version_a/data_1/data_2 needs to be deleted.
Thanks in advance.
Can this be done by using the Find command or is this something that needs to be scripted?