#!/bin/bash
# Walk trough a map 
# test then if all files have one line
# When they have one line then move the file to a map for empty files
# You can give your own name
emptyfiles=EmptyFiles
# make a map when the name does not exist
test -d $emptyfiles || mkdir $emptyfiles

# Now test all the files who ens on .csv 
# When there is only one line it means the table is empty.
for fileName in *.csv
	 do
		test  "$(wc -l   "$fileName")"  = "1 $fileName"   &&  mv   "$fileName" "$emptyfiles/."
	done