Perl
Florian Lohoff
flo at rfc822.org
Thu Apr 10 10:28:02 CEST 2003
On Thu, Apr 10, 2003 at 10:16:41AM +0200, Ralph Meyer wrote:
>
> ich hab hier eine Textdatei von einem DOS-Rechner.
> Jede Zeile beginnt mit 2 Zeichen die den
> Hexadezimalwert 20 haben. Ich will diese 2
> Zeichen entfernen, sodas am Anfang jeder Zeile
> eine Zahl steht. Aufgrund geistiger Umnachtung
> bekomme ich das einfach nicht hin.
> Ich hoffe ihr könnt mir helfen.
> Ein Auszug der Datei als Anhang.
0x20 ist ein space - Du willst jetzt also 2 spaces am anfang entfernen ?
Was spricht gegen
sed -e 's/^..//'
Dann sind 2 beliebe zeichen am anfang der zeile wech ...
> 758 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 818 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 896 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Flo
--
Florian Lohoff flo at rfc822.org +49-5201-669912
Heisenberg may have been here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20030410/c74723f0/attachment.sig>
More information about the Linux
mailing list