Am 2005-02-08 20:35:52, schrieb Gerhard Gaußling: > Mit tr gehts: > tr -d '\015' Das ist aver ein CR (0F), was ich benötige ist das entfernen von LF (0A). > # Lines in a DOS text file end in a CR-LF. > CR='\015' # Carriage return. Das entfernt das CR, die bei mir aber nicht vorkommen... Nach der Manualseite von sed ist \n der LF und __( manpage 'bash' )__________________________________________________ / | BASH(1) BASH(1) | | NAME | bash - GNU Bourne-Again SHell <snip> | QUOTING | Words of the form $'string' are treated specially. The | word expands to string, with backslash-escaped characters | replaced as specifed by the ANSI C standard. Backslash | escape sequences, if present, are decoded as follows: | a alert (bell) | b backspace | e an escape character | f form feed | n new line | r carriage return | t horizontal tab | v vertical tab | \ backslash | ' single quote | nnn the eight-bit character whose value is the | octal value nnn (one to three digits) | xHH the eight-bit character whose value is the | hexadecimal value HH (one or two hex digits) <snip> | GNU Bash-2.05a 2001 November 13 BASH(1) \______________________________________________________________________ auch mit $'\n' oder $'\09' bin ich nicht weitergekommen. > ciao > > Gerhard Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Attachment:
signature.pgp
Description: Digital signature