Conversation
Notices
-
Embed this notice
silverwizard (silverwizard@convenient.email)'s status on Wednesday, 15-Feb-2023 22:42:40 JST silverwizard @hal_pomeranz find . -type f -exec basename {} \; | grep '\.' | tr A-Z a-z | awk -F "." '{print $NF}' | sort | uniq -c | sort -n ; printf ' ' ; find . -type f -exec basename {} \; | grep -v '\.'| sed's/$/ other/'
Let's not talk about the difference between jpg and jpeg and thing about how terrible that looks-
Embed this notice
Hal Pomeranz (hal_pomeranz@infosec.exchange)'s status on Wednesday, 15-Feb-2023 22:42:43 JST Hal Pomeranz Write a Linux command line to traverse a directory of files and summarize the number of instances of each file extension found (e.g., .docx, .jpg, .pdf, etc). Fold all file extensions to lower case-- ".JPG" and ".jpg" should be reported together. Files that have no extension should be reported as "other". List the extensions found in descending numeric order by the number of occurrences of each extension.
-
Embed this notice