echo 'sh -c "mycmd -f&&yourcmd --bar=foo||bash -c \"ourcmd baz\" --bashflag"|&{quux|corge;}' | cmdparse
mycmd -f
yourcmd --bar=foo
ourcmd baz
quux
corge
pbar1 / cmdparse Goto Github PK
View Code? Open in Web Editor NEWTool that extracts command strings from Bash scripts using Tree-sitter