Find all files in directory which has ^@ control M in it

199 views Asked by At

I have 200 odd file in a directory. Many files have ^@^@^@^@^@^@^@^@ characters in it. I have to first find all the files which have these special characters and list it. Then take a back up of those files and delete the special characters in those files.

i tried all the below commands. od /Root/sources/filename | grep ' 000' --> shows there are special chars in the one file

find /Root/sources/filename -type f -->list all the files in my directory

Have to club these 2 and list out only file names which has these special characters.

Thanks In advance.

0

There are 0 answers