Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash cat remove special characters

cat yourfile.txt | tr -dc '[:alnum:]

'
cat yourfile.txt | sed 's/[^a-zA-Z0-9]//g'
cat yourfile.txt | tr -dc '[:print:]'
 
PREVIOUS NEXT
Tagged: #bash #cat #remove #special #characters
ADD COMMENT
Topic
Name
5+5 =