[bash] Removing incorrect characters

This is a script I had done to remove an incorrect character I had in some files:

#!/bin/bash
for e in $(grep -R "|" /var/lib/files/* | cut -d: -f1)
do
tr -d '|' < $e > $e
done

Deja un comentario