I need to select files which contain Error or traffic in their names, e.g.abc_ERRor.csvraError.csvbsn_Error.csvbbbctraffic.csvccc_traffic.csv...and move them into corresponding directories like Error_directory and traffic_directory according to their names.I tried this but it didn't workmv $(ls test_file | grep -l 'Error>' *) Error_directoryHow can I do this from the command-line?ls test_file | grep 'Error'
Need to grep file with specific letter and move to another folder Linux
command line;grep;filenames