Today I realized that in some files I used, I had a | character that provoked them to be of little use (and provoke misconfiguration on the system), so I thought of removing them in a row. The choice was obvious, use tr to remove these characters, and it was perhaps the easier to script to do:
1 | #!/bin/bash |
2 | for e in $( grep -R "|" /var/lib/files/* | cut -d: -f1) |
3 | do |
4 | tr -d '|' < $e > $e |
5 | done |