I have a JSON formatted file that contains the Event field
in the file / home / Ec2-user / workspace / events_parts / * file $ cat. Jq '.' Avent 'done
I get a list of "event" values removed from the JSON file. I want to assign this value to a bit variable so that I can use it for comparison later. . How do i do this
You use myVar = $ (some bash commands)
one To store in the variable and you call it like "$ myVar" echo
; Your string (trimming, new line, "")
is inserting "myVar
around "
to pretend the shell or even You can put it in an array like this: myArray = ($ (some bash commands))
No comments:
Post a Comment