Linux Command Line using for loop and formatting results
问题 How can I use one command line to provide a list of all files between a certain size and then format the file with name, md5 has and the file size. The example output should be file1.*** MD5 value size file2.*** MD5 value size etc. Ive tried the following but it displays the md5 on a separate line find 'directory' -size +30000c -size -50000c | while read filename do ls -l "$filename" | awk '{print $9 "\t" $5}' md5sum "$filename" | awk '{print $1}' done It outputs the follow with the MD5 on a