Randomly sort the files in the /usr/lib directory that have a ".bak" extension and are less than 300 kilobytes in size, and display the first 500 results.
sort --random-sort <(find /usr/lib -type f -name "*.bak" -size -300k) | head -n500