|
From: | Chet Ramey |
Subject: | Re: tokenize honoring quotes |
Date: | Fri, 5 Aug 2022 16:40:52 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
On 8/5/22 4:28 PM, Koichi Murase wrote:
2022年8月6日(土) 2:44 Robert E. Griffith <bobg@junga.com>:Is there an efficient native bash way to tokenize a string into an array honoring potentially nested double and single quotes?I think you may use history expansions to safely cut tokens.
This is very clever. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |