i have to show size of all files .conf which are in /etc and redirect size output to a file.txt but i want to add to my command a flag which set a limit of redirected output
my command is:
find /etc -name "*.conf" -printf "%s\n" | paste -sd+ | bc > file.txt
but this command show 365077 bytes
and i want to have values between 120000 bytes and 300000 bytes of redirected output that means when i cat file.txt to have a value between 120000bytes and 300000bytes
How to find the flag for command?