Mailinglist Archive: opensuse (2086 mails)
| < Previous | Next > |
[opensuse] How to insert lines into text file ?
- From: "Alexey Eremenko" <al4321@xxxxxxxxx>
- Date: Thu, 16 Aug 2007 10:15:04 +0200
- Message-id: <7fac565a0708160115s599b0faftf618fc6fa4e56d8b@xxxxxxxxxxxxxx>
Hi all !
I would like to insert a new line on each second line, like that:
pre.txt:
line1
line2
line3
After.txt:
line1
line2
line3
I have found the "echo -e "\n" " command to actually insert a new
line, but how to automate the process so every second line will get a
new line ?
please help
--
-Alexey Eremenko "Technologov"
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
I would like to insert a new line on each second line, like that:
pre.txt:
line1
line2
line3
After.txt:
line1
line2
line3
I have found the "echo -e "\n" " command to actually insert a new
line, but how to automate the process so every second line will get a
new line ?
please help
--
-Alexey Eremenko "Technologov"
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |