Timeline for append text with echo without new line
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 16, 2020 at 14:16 | comment | added | Itération 122442 |
What if I want to replace abc with a variable ? Using '$ s/$/$1/' prints $1
|
|
| Dec 25, 2017 at 8:56 | comment | added | RomanPerekhrest | @roaima, night think -> might think ... | |
| Dec 25, 2017 at 8:51 | comment | added | Chris Davies | I thought you would have been, but i was concerned that with your emphasis of inplace the OP night think it could be used to avoid double disk space use, eg with a large file. | |
| Dec 25, 2017 at 6:38 | comment | added | RomanPerekhrest | @roaima, I'm aware about sed changing inode number. | |
| Dec 25, 2017 at 0:47 | comment | added | Chris Davies |
Note that "in place" doesn't really mean in place. It means "write the edited content to a temporary named file alongside the existing file and then replace it". You can prove this by looking at the inodes with date >file; ls -i file; sed -i 's/201/ZZZ/' file; ls -i file
|
|
| Dec 24, 2017 at 19:54 | history | edited | RomanPerekhrest | CC BY-SA 3.0 |
added 36 characters in body
|
| Dec 24, 2017 at 19:09 | history | edited | RomanPerekhrest | CC BY-SA 3.0 |
added 3 characters in body
|
| Dec 24, 2017 at 17:23 | history | answered | RomanPerekhrest | CC BY-SA 3.0 |