To convert all tabs to 5 spaces you can use the following perl command line:
(replace ___ to spaces)

perl -e ‘($_ = join “”,<>) =~ s/(\t)/_____/g; print;’ < input.txt > output.txt