how to delete all folders of same type?
whats the command to delete all folders of a postProcessing result in time folders after seeing and use?
|
Hi Ehsan,
Sorry, but your question is too ambiguous :( Can you describe in more detail? Best regards, Bruno |
for example the folders that originated by "Co"(courant number) command.
|
I've tested running Co with the tutorial case "incompressible/icoFoam/cavityGrade" and it only created the field files "Co" in the already existing time folders. To remove these field files, you can do the following command:
Code:
rm */Co Code:
echo rm */Co But if it does create new folders, them the trick should be to first remove the files that were created, by using the command above; and then remove the empty directories with the following command: Code:
for a in *; do rmdir $a; done |
could you describe me a bit about it?
Code:
for a in *; do rmdir $a; done |
Hi Ehsan,
It's the same as doing: Code:
for a in * Code:
help for
Best regards, Bruno |
All times are GMT -4. The time now is 03:16. |