help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Have Bash to parse multiple space-contained words connected by \, the si


From: Budi
Subject: Have Bash to parse multiple space-contained words connected by \, the simplest way
Date: Sun, 22 Nov 2020 21:13:27 +0700

How within a string, can we have Bash to parse multiple
space-contained words connected by escape char \, by the simplest way
(only 1-2 commands/lines) ?

s="English phrases must be understood are as\ well, even\ if, as\ such"
How to achieve kind of in few variables (or enclosed by quote pair
instead of double quote):

a="English"
b="phrases"
c="must"
d="be"
e="understood"
f="are"
g="as well,"
h="even if,"
i="as such"
or as array of s variable itself, etc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]