6/19/2023 0 Comments Anylogic get variable valueNote that this also requires the GNU versions of find, sort, and cut. That would be something like: mapfile -d '' files < <( If you need to sort the filenames by timestamp (so you can delete the oldest files first), you can use the method described in my answer to Shell Script to move oldest file from one directory to another directory. (yes, extracting data from df's output is harder than it seems at first glance, for pretty much the same reason why parsing ls is a bad idea ) Printf "Deleting file:\n%s\n" "$(stat - "$ # While pct is above the threshold and there is at least Chaptersrndt, F, Katic, M, Mistry, A
0 Comments
Leave a Reply. |