sed "s/(.*)/1/" $filename > $sedTmpFile && mv $sedTmpFile $filename
I am expecting this sed
script to insert a tab
in front of every line in $filename
however it is not. For some reason it is inserting a t
instead.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…