Hallo, Am Sat, 08 Nov 2003, Al Bogner schrieb:
Mit | sed '1,4d' lösche ich die ersten 4 Zeilen mittels pipe. Wie füge ich bitte danach "#!/bin/bash" in die erste Zeile hinzu? Sollte man eventuell die 1. Zeile mit "c" ersetzen?
| sed '1,4c\ #! /bin/bash' 'c' arbeitet auch auf Adressen... Obiges ist dann uebersetzt: *c*hange lines 1 through 4 to '#! /bin/bash' sed kann so einfach sein, was? ;) -dnh -- "...[T]he harried saints of the tech department (who can never be paid enough as far as I'm concerned--I cannot imagine what it's like to know nearly everything about systems and have to deal, daily, with people who know nearly nothing about systems. It's like being a cosmologist at an astrology convention)...." -- James Lileks