find comes to mind to search for sizes:
Code:
find bu_folder -size -220M -name '*tar.gz' -
combined with either dirname or parameter expansion to get the path to the directory in which said files are found:
with dirname (the less sexy solution :-) )
Code:
find bu_folder -size -220M -name '*tar.gz' -exec sh -c '
for f; do
echo $(dirname "$f")
done' echo_failed_bu {} \;
getting all files in that folder:
Code:
find bu_folder -size -220M -name '*tar.gz' -exec sh -c '
for f; do
for i in $(dirname "$f")/*; do
echo "$i"
done
done' echo_failed_bu {} \;
In case you think that is a solution to your liking, look here to get the exact syntax you need for find:
http://mywiki.wooledge.org/UsingFind
and here to use parameter expansion to get the path of the file you found:
http://mywiki.wooledge.org/BashFAQ/0...meterExpansion
If the final ; doesn't work, you may want to try a + instead.