adding awk command in shell and removing directories