Help with Finding unexpected characters such as < and " in Directory

isabellalee

New Member
Joined
Dec 31, 2019
Messages
1
Reaction score
0
Credits
0
I need some assistance. I have been trying all kinds of grep commands and have no luck.
I am in a directory that has a list of different files. How can I find which files contain unexpected characters such as < and " within this directory?
I need to find all files within this directory that have unexpected characters such as < and ". And what command could I use if to take out the invalid character pattern to “clean” the files for proper parsing.

THANK YOU!!!!
 


Maybe try the sed command-

To take out the characters or to clean the files you would have to open each file in nano or vi and delete those characters manually, unless there is a script that you can write to remove those characters.


This may help too-
 

Members online


Latest posts

Top