Difference between revisions of "Prepend"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
* {{Append}} | * {{Append}} | ||
* {{tee}} | * {{tee}} | ||
+ | * {{sed}} | ||
[[Category:Computing]] | [[Category:Computing]] |
Revision as of 14:56, 28 September 2023
Prepend a space at the beginning of lines:
sed s/^/" "/
prepend_space () { sed s/^/" "/ }
Related
See also
- Append, prepend
tee
,sponge
,append, prepend, tee --append
sed, gsed
,-n, -i
,Ansible: replace
,append
,Chef: Editing a file
,lineinfile
Advertising: