Thread Textdatei bearbeiten (12 answers)
Opened by JoeyEJ9 at 2011-11-08 15:30

pq
 2011-11-08 16:21
#154018 #154018
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
mit einem einzeiler ginge das so:
Code: (dl )
perl -ni.bak -e 'if ($body) { print } else { $body = 1 if m/^$/ }' textfiles
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Textdatei bearbeiten