[opensuse] How to insert lines into text file ?
- From: "Alexey Eremenko" <al4321@xxxxxxxxx>
- Date: Thu, 16 Aug 2007 10:15:04 +0200
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
- Follow-Ups:
- RE: [opensuse] How to insert lines into text file ?
- From: Ted Harding
- Re: [opensuse] How to insert lines into text file ?
- From: Magnus Boman
- RE: [opensuse] How to insert lines into text file ?
- Prev by Date: Re: [opensuse] thoughts on how to repair a destroyed /boot?
- Next by Date: Re: [opensuse] How to insert lines into text file ?
- Previous by thread: [opensuse] thoughts on how to repair a destroyed /boot?
- Next by thread: Re: [opensuse] How to insert lines into text file ?
- Index(es):
Relevant Pages
|