Created
May 9, 2017 00:57
-
-
Save linhxhust/132757112e192e53ef47ea10ac0d0ebd to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
cdr_path="/path/to/cdr/rec/" | |
for cdr_file in `ls ${cdr_path}` | |
do | |
printf "Process file: ${cdr_file}\n" | |
file_path="${cdr_path}${cdr_file}" | |
ex +"%s/$/${cdr_file}/g" -cwq $file_path | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment