Created
June 30, 2012 18:53
-
-
Save coyotte508/3025095 to your computer and use it in GitHub Desktop.
How to add line numbers to a file (with preserving the BOM character) on PO (all .txt files of a subfolder)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find db/moves -name "*.txt" -exec bash -c './remove-bom.sh {} && awk '\''{ print NR-1 " " $0 }'\'' {} > {}~ && mv {}~ {} && ./add-bom.sh {}' \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment