|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hello
With this command I can add text to the end of a file but on a new line: echo hello>>file Hoe can I add that text to the end of the last line? Thanks -- chlori |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Fri, 18 Aug 2006 12:19:49 +0200, Chlori Ylori wrote:
> With this command I can add text to the end of a file but on > a new line: > > echo hello>>file > > Hoe can I add that text to the end of the last line? [...] sed '$s/$/hello/' < file 1<> file -- Stephane |
|
![]() |
| Outils de la discussion | |
|
|