sed \"s/\\(.*\\)/\\t\\1/\" $filename > $sedTmpFile && mv $sedTmpFile $filename
I am expecting this sed script to insert a <
sed
Using Bash you may insert a TAB character programmatically like so:
TAB=$'\t' echo 'line' | sed "s/.*/${TAB}&/g" echo 'line' | sed 's/.*/'"${TAB}"'&/g' # use of Bash string concatenation