Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 926F7782C10 for <~alpine/users@lists.alpinelinux.org>; Tue, 23 Feb 2021 08:11:35 +0000 (UTC) Received: by mail-io1-f52.google.com with SMTP id f20so16162085ioo.10 for <~alpine/users@lists.alpinelinux.org>; Tue, 23 Feb 2021 00:11:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maccagnoni-eu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Pmb5P+O1y9wd0Ckt7s/eUKfRjg7MxuAIK8kY9kaM3vs=; b=Qv6kgyPUbgLccoE7ntuQOcbgwypjKIXqE+7xiUFFLwCMDFOWI6f24yENHSaFdW2BYk zdCaFbutM1bKfe6tVtpw7r8EX1OmPrCzZc5/tHMGJzshl96KzlBOvYEIIH6U/uLxL7u6 +g4YnNOfi/zY8faZp1aEC+242tLSp/jpri6kFj4FD8+ZT15GBo4OM/xIGMX8J2qgvRYP R2MGm46jM+SJauOLFgxkJ5DIV4PWtQ/mp+ku4EBF0rYhDKnfZgHFUG71dGJKmeXWRgsc P2rYWIkJAqDmqyU24NVLgT1wrH+gRVkgtnMASyi1o4pGmHiU3n7ZDuUHn60eJfNciiW6 n26A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Pmb5P+O1y9wd0Ckt7s/eUKfRjg7MxuAIK8kY9kaM3vs=; b=BSKC0pw5gs7cn6kXufP8rQrnYauBDj0Gkm6sf6UN3I0127beobBQbNQbIbWcPXYDvb oOUDB/0qFuyNO11/34kYXqKaqkUfdrRkP38BrPHqTFaqwh7oJCBveLo3YXmQhn7+/nu1 4bAQDX1bGZ12oWTUGz+iiWsBF12h09h3XkkYWSuwJz4+r1QGSwh6Ljv8wJZCYYVhogFA /6JCXB/+UOIVBUCZMN8lSLDNYTKkQi+RCRlq0vk+hLL2NAwG97/nGdBc6drxFaDT739F F+mcHlPu9W8ZBMOX1rnYqFrvEB7+gcxyL07FSNBxpzmV1hu7QiG8vY6c6qhY6+B2b/G/ /DVA== X-Gm-Message-State: AOAM533+x0ehT1kfIfomqjLghP0/3JCZVx8lOA0daeStFSk7Wa2AOANK dtdHFg60xCvZbGdlcJzJeKjwKesdIEz9++iWCfxR2w== X-Google-Smtp-Source: ABdhPJy2eCMGq4xRTWI7cVqIyYGiY0Njt9kvynr0VNUNBKEN5mQE3bU5mw3Y6hvB4e4c1gjBthKDwBwulbH7DsEw/bc= X-Received: by 2002:a5d:9510:: with SMTP id d16mr18671638iom.81.1614067893185; Tue, 23 Feb 2021 00:11:33 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?S=C3=A9bastien_Maccagnoni?= Date: Tue, 23 Feb 2021 09:11:22 +0100 Message-ID: Subject: Re: Windows/Dos ^M (CR/LF) removal on Alpine ash shell To: Banibrata Dutta Cc: ~alpine/users@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="0000000000006aecb305bbfc77b4" --0000000000006aecb305bbfc77b4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, The dos2unix command, which is available in package dos2unix, would probably do what you want. Le mar. 23 f=C3=A9vr. 2021 =C3=A0 06:00, Banibrata Dutta a =C3=A9crit : > What would be the recommended way to remove the Control-M (CR/LF > combination from DOS/Windows produced text file) in ash shell on Alpine ? > In bash, I could use sed and the Control-V+Control-M character to inject = ^M > in the regex pattern to find/replace. That combination doesn't seem to wo= rk > on Alpine ash. > --=20 S=C3=A9bastien https://www.maccagnoni.eu/ --0000000000006aecb305bbfc77b4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

The dos2un= ix command, which is available in package dos2unix, would probably do what = you want.

Le=C2=A0mar. 23 f=C3=A9vr. 2021 =C3=A0=C2=A006:00, Banibrat= a Dutta <banibrata.dutta@gm= ail.com> a =C3=A9crit=C2=A0:
What would be the recommended way= to remove the Control-M (CR/LF combination from DOS/Windows produced text = file) in ash shell on Alpine ? In bash, I could use sed and the Control-V+C= ontrol-M character to inject ^M in the regex pattern to find/replace. That = combination doesn't seem to work on Alpine ash.


--
<= span>
<= /div>
--0000000000006aecb305bbfc77b4--