Actions
Feature #643
closed
DC
DC
Using Sed To Add Spaces To The Beginning Of Each Line Of A File
Feature #643:
Using Sed To Add Spaces To The Beginning Of Each Line Of A File
Description
This is a super simple way of adding a number of spaces to the beginning of each line of a given file.
- Add 3 spaces to the beginning of every line of a file:
sed -i -e 's/^/ /' example-file.txt
Resources¶
Actions