A regular expression for four spaces at the beginning of a line /^ /, where I put slashes just to delimit the expression (they are not part of the real regular expression, but they are used as delimiters on sed).
sed 's/^ /\t/' file
sed -i file (.. sed ); * BSD ( OSX), -i '' .
escape- \t ; , , , , ctrl-V.
( "", . , \t script --, .)
" , ", sed, Perl:
perl -pe 's%^((?: )+)% "-" x (length($1) / 2)%e' file
$1; , + , . /e Perl- ; "-" , , .