I need to select files which contain "Error" or "traffic" in their names, e.g.
abc_ERRor.csv raError.csv bsn_Error.csv bbbctraffic.csv ccc_traffic.csv ...
and move them into corresponding directories like
traffic_directory according to their names.
I tried this but it didnt work
mv $(ls test_file | grep -l 'Error>' *) Error_directory
How can I do this with a
ls test_file | grep 'Error'