Skip to content
This repository was archived by the owner on Dec 16, 2017. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions maltrievecategorizer_nosize.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

root_dir="/media/malware/maltrievepulls/"
all_files="$root_dir*"
for file in $all_files
do
if [ -f $file ]; then
outstring=($(eval file $file))
stringsubone="${outstring[1]}"

if [ ! -d $root_dir$stringsubone ]; then
mkdir -p "$root_dir$stringsubone"
fi
mv $file "$root_dir$stringsubone/"
fi
done