Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id F3C0A782BE6 for <~alpine/users@lists.alpinelinux.org>; Tue, 23 Feb 2021 05:00:02 +0000 (UTC) Received: by mail-ej1-f54.google.com with SMTP id e13so29398109ejl.8 for <~alpine/users@lists.alpinelinux.org>; Mon, 22 Feb 2021 21:00:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=A5AbJ6I0CNftA/DA61ZCiIXJZ8PnWR7wBmBB8RdRZHE=; b=S03wquB+coA0qqU+jDk2tYD+BzEtRt20GH9jzlIDK/2nWCjrKVAgogvTveddylbn8m 4Jak8AmrL1Z0uurac+DCvMMiXgE/4cBmHUVVycGsu17JOOeO0vSpRgY2c7X3edI/DEKf tgLZGorgoWvczbfZS+Z125xFlSeSiNLQqorkR3w8DnxLEZoTbP6lXKW5C+ULezAzlkj0 oBTS4cVwLTzSxBt2N015qCnX7uePzqowHW19m8moSs2MrcwnA3dTXCbDuk7C0oPe2IP9 8w03juSh6G++aF0wcpnml1W6Pp/Z3r/eCwzswiSR8iHGW+HCDR48m2gQM1i4T2mVFN1Y lPgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=A5AbJ6I0CNftA/DA61ZCiIXJZ8PnWR7wBmBB8RdRZHE=; b=PhXC6q/qXrnr/QN5U+A0I1zvTARES4CYT7Abf+9CuhLbp+FZ3AJMv17Rx0jhHqPjyS beIWKkbiVVbsOXhqqoNnrPv8f2v8XtJ5k2a2uKN/XmPKntdMu2FoCJw70mu3o1WNH1bf NCClI2D+JELJ5O8SL+TsM7IlaNe4iSGWy87az5RtxaK3tLBUPuy4ebh2S1Li8Rfe+xBE AhnjtP+EzfuEzV4Tl3eatnJN5j1DyBhCA9jyjfQIBiMHdo20urtg1P5uMuphi69pgcGF 4iemCiAaW+LI88jUaCyDb2xwLK+IJAOuQZL6N/nSBRKckHsRzWn0DxD1syZ1k16WUVVi GbEw== X-Gm-Message-State: AOAM533B38sacdcz8xIyO0jbpoq8pU2a1ULK3F1WGDpmHbxel8y6ee7J 92G2Z4rhrPI+5Zo/e1ciRugmxgoPi7JaQruTptiAqfjGeZk= X-Google-Smtp-Source: ABdhPJxARpeuTzVEtOmrbvzKznlTX1lbH4hOxVoSb+/MF46F17YtvjQQtXs8eb6bPi1Yi8rX7pBurODKqofyE6QHdF8= X-Received: by 2002:a17:906:3856:: with SMTP id w22mr23943673ejc.77.1614056402035; Mon, 22 Feb 2021 21:00:02 -0800 (PST) MIME-Version: 1.0 From: Banibrata Dutta Date: Tue, 23 Feb 2021 10:29:50 +0530 Message-ID: Subject: Windows/Dos ^M (CR/LF) removal on Alpine ash shell To: ~alpine/users@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="0000000000007da95505bbf9ca4c" --0000000000007da95505bbf9ca4c Content-Type: text/plain; charset="UTF-8" Hi, 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 work on Alpine ash. thanks BD --0000000000007da95505bbf9ca4c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

What would be the recomm= ended way to remove the Control-M (CR/LF combination from DOS/Windows produ= ced text file) in ash shell on Alpine ? In bash, I could use sed and the Co= ntrol-V+Control-M character to inject ^M in the regex pattern to find/repla= ce. That combination doesn't seem to work on Alpine ash.
=
thanks
BD
--0000000000007da95505bbf9ca4c--