/ Published in: Bash
Respects tab size setting
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/bash _TAB_REPLACEMENT_STR=$(jot -b ' ' -s '' $TM_TAB_SIZE) cat $TM_FILEPATH | perl -pe "s/\t/$_TAB_REPLACEMENT_STR/g"