Score:0

composing a single search command for multiple outputs

de flag

I am seeking help in composing a single, extended command where a mounted partition is searched for all files between 10000 & 45000 bytes, and that the md5sum & file path of the file locations are also printed in the same results - preferably via awk. Any help greatly appreciated

user535733 avatar
cn flag
This resembles a homework problem.
cn flag
please show us how far you got.
waltinator avatar
it flag
The restriction to "awk" screams "homework".
hr flag
You can use the `find` command's `-size` test to select files - then pass them to `md5sum` via the `-exec` option. The default output of `md5sum` appears to be what you want - with no need for further manipulation by awk.
karel avatar
sa flag
Does this answer your question? [Find files whose size is less than 10 MB](https://askubuntu.com/questions/388949/find-files-whose-size-is-less-than-10-mb) and [Generate a separate .md5 file for each file in a directory, while SKIPPING existing ones](https://askubuntu.com/q/1043093/)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.