This is a script I had done to remove an incorrect character I had in some files:
1 | #!/bin/bash |
2 | for e in $( grep -R "|" /var/lib/files/* | cut -d: -f1) |
3 | do |
4 | tr -d '|' < $e > $e |
5 | done |
This is a script I had done to remove an incorrect character I had in some files:
1 | #!/bin/bash |
2 | for e in $( grep -R "|" /var/lib/files/* | cut -d: -f1) |
3 | do |
4 | tr -d '|' < $e > $e |
5 | done |