Prepend a space at the beginning of lines:
sed s/^/" "/
prepend_space () {
sed s/^/" "/
}
Related[edit]
See also[edit]
- Append, prepend
tee
, sponge
, append, prepend, tee --append
sed, gsed
, -n, -i
, Ansible: replace
, append
, Chef: Editing a file
, lineinfile